We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c85cb41 commit 42bf3b0Copy full SHA for 42bf3b0
tests/test_self.py
@@ -931,7 +931,10 @@ def test_import_plugin_from_local_directory_if_pythonpath_cwd(tmpdir):
931
932
with tmpdir.as_cwd():
933
orig_pythonpath = os.environ.get("PYTHONPATH")
934
- os.environ["PYTHONPATH"] = "."
+ if sys.platform == "win32":
935
+ os.environ["PYTHONPATH"] = "."
936
+ else:
937
+ os.environ["PYTHONPATH"] = f"{(orig_pythonpath or '').strip(':')}:."
938
process = subprocess.run(
939
[
940
sys.executable,
0 commit comments