# HG changeset patch # User timeless # Date 2016-04-13 13:51:39 # Node ID c969c72d6cbcc7d4bb38b22d7bae4a1a222189b2 # Parent 80be5dbe6e74a1b2f20ee118791a6e046a78cccf 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 diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -2115,6 +2115,7 @@ class TestRunner(object): if self.options.pure: os.environ["HGTEST_RUN_TESTS_PURE"] = "--pure" + os.environ["HGMODULEPOLICY"] = "py" if self.options.allow_slow_tests: os.environ["HGTEST_SLOW"] = "slow"