Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/+native-env-files-pythonpath.packaging.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Keep `test_native_env_files_override_ini` passing when packagers run the suite with the plugin only on `PYTHONPATH`.
2 changes: 2 additions & 0 deletions tests/test_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -1168,6 +1168,8 @@ def test_env() -> None:
{
**system_env,
**python_env,
# Packagers may expose the plugin only through the caller's PYTHONPATH.
"PYTHONPATH": os.pathsep.join(filter(None, (os.environ.get("PYTHONPATH"), python_env.get("PYTHONPATH")))),
"PYTEST_DISABLE_PLUGIN_AUTOLOAD": "1",
"PYTEST_PLUGINS": "pytest_env.plugin",
},
Expand Down