Mercurial > public > mercurial-scm > hg
diff tests/run-tests.py @ 52596:2dcca69e0d04
run-tests: stop including testdir 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:53:37 +0100 |
parents | 181af28757f9 |
children | 003cb26c735b |
line wrap: on
line diff
--- a/tests/run-tests.py Thu Jan 02 14:52:23 2025 +0100 +++ b/tests/run-tests.py Thu Jan 02 14:53:37 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] + pypath = [self._pythondir] # Setting PYTHONPATH with an activated venv causes the modules installed # in it to be ignored. Therefore, include the related paths in sys.path