Skip to content

Commit

Permalink
Fix regession with sys.path filter (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p authored and Pierre-Sassoulas committed Mar 28, 2021
1 parent c85cb41 commit 42bf3b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_self.py
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,10 @@ def test_import_plugin_from_local_directory_if_pythonpath_cwd(tmpdir):

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,
Expand Down

0 comments on commit 42bf3b0

Please sign in to comment.