summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Mueller <30130371+cdce8p@users.noreply.github.com>2021-03-28 21:05:13 +0200
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-03-28 22:48:56 +0200
commita203dee75520a5ae5c575988c524231595d781ce (patch)
tree85d74583f90de9720a4ce24183bc73ad7e5df101
parent8c2d0607b9bf3e7794cd77582b27cf4b87254ddd (diff)
downloadpylint-git-a203dee75520a5ae5c575988c524231595d781ce.tar.gz
Fix regession with sys.path filter (2)
-rw-r--r--tests/test_self.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_self.py b/tests/test_self.py
index af78f6f3c..a6d4ed442 100644
--- a/tests/test_self.py
+++ b/tests/test_self.py
@@ -931,7 +931,10 @@ class TestRunTC:
with tmpdir.as_cwd():
orig_pythonpath = os.environ.get("PYTHONPATH")
- os.environ["PYTHONPATH"] = "."
+ if sys.platform == "win32":
+ os.environ["PYTHONPATH"] = "."
+ else:
+ os.environ["PYTHONPATH"] = f"{(orig_pythonpath or '').strip(':')}:."
process = subprocess.run(
[
sys.executable,