Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename pythonpath plugin to python_path #9651

Merged
merged 1 commit into from Feb 9, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/9636.bugfix.rst
@@ -0,0 +1 @@
The ``pythonpath`` plugin was renamed to ``python_path``. This avoids a conflict with the ``pytest-pythonpath`` plugin.
2 changes: 1 addition & 1 deletion src/_pytest/config/__init__.py
Expand Up @@ -254,7 +254,7 @@ def directory_arg(path: str, optname: str) -> str:
"warnings",
"logging",
"reports",
"pythonpath",
"python_path",
*(["unraisableexception", "threadexception"] if sys.version_info >= (3, 8) else []),
"faulthandler",
)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion testing/test_config.py
Expand Up @@ -1275,7 +1275,7 @@ def pytest_load_initial_conftests(self):
("_pytest.config", "nonwrapper"),
(m.__module__, "nonwrapper"),
("_pytest.legacypath", "nonwrapper"),
("_pytest.pythonpath", "nonwrapper"),
("_pytest.python_path", "nonwrapper"),
("_pytest.capture", "wrapper"),
("_pytest.warnings", "wrapper"),
]
Expand Down
2 changes: 1 addition & 1 deletion testing/test_pythonpath.py → testing/test_python_path.py
Expand Up @@ -81,7 +81,7 @@ def test_no_ini(pytester: Pytester, file_structure) -> None:


def test_clean_up(pytester: Pytester) -> None:
"""Test that the pythonpath plugin cleans up after itself."""
"""Test that the plugin cleans up after itself."""
# This is tough to test behaviorly because the cleanup really runs last.
# So the test make several implementation assumptions:
# - Cleanup is done in pytest_unconfigure().
Expand Down