comparison tests/run-tests.py @ 28905:c969c72d6cbc

run-tests: set HGMODULEPOLICY for --pure Without this, my python 2.6 virtualenv test run with --pure and --local fails with: + ImportError: Python minor version mismatch: The Mercurial extension modules were compiled with Python 2.7.8, but Mercurial is currently using Python with sys.hexversion=33950192: Python 2.6.9 (unknown, Apr 13 2016, 12:40:12) + [GCC 4.9.2 20141101 (Red Hat 4.9.2-1)] + at: ~/hg/py26/bin/python
author timeless <timeless@mozdev.org>
date Wed, 13 Apr 2016 13:51:39 +0000
parents f74eed3115fd
children daff05dcd184
comparison
equal deleted inserted replaced
28904:80be5dbe6e74 28905:c969c72d6cbc
2113 pypath.append(oldpypath) 2113 pypath.append(oldpypath)
2114 osenvironb[IMPL_PATH] = sepb.join(pypath) 2114 osenvironb[IMPL_PATH] = sepb.join(pypath)
2115 2115
2116 if self.options.pure: 2116 if self.options.pure:
2117 os.environ["HGTEST_RUN_TESTS_PURE"] = "--pure" 2117 os.environ["HGTEST_RUN_TESTS_PURE"] = "--pure"
2118 os.environ["HGMODULEPOLICY"] = "py"
2118 2119
2119 if self.options.allow_slow_tests: 2120 if self.options.allow_slow_tests:
2120 os.environ["HGTEST_SLOW"] = "slow" 2121 os.environ["HGTEST_SLOW"] = "slow"
2121 elif 'HGTEST_SLOW' in os.environ: 2122 elif 'HGTEST_SLOW' in os.environ:
2122 del os.environ['HGTEST_SLOW'] 2123 del os.environ['HGTEST_SLOW']