Mercurial > public > mercurial-scm > hg
diff tests/run-tests.py @ 52595:181af28757f9
run-tests: stop including runtestdir in the PYTHONPATH
This is a first step toward stopping overriding PYTHONPATH all together. I do it
step by step to ease the detection of tests that might need to be adapted.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 02 Jan 2025 14:52:23 +0100 |
parents | b0ecab6773cf |
children | 2dcca69e0d04 |
line wrap: on
line diff
--- a/tests/run-tests.py Thu Jan 02 16:22:14 2025 +0100 +++ b/tests/run-tests.py Thu Jan 02 14:52:23 2025 +0100 @@ -3398,7 +3398,7 @@ # can run .../tests/run-tests.py test-foo where test-foo # adds an extension to HGRC. Also include run-test.py directory to # import modules like heredoctest. - pypath = [self._pythondir, self._testdir, RUNTEST_DIR] + pypath = [self._pythondir, self._testdir] # Setting PYTHONPATH with an activated venv causes the modules installed # in it to be ignored. Therefore, include the related paths in sys.path