Skip to content

Commit

Permalink
Rename pythonpath plugin to python_path
Browse files Browse the repository at this point in the history
  • Loading branch information
bluetech committed Feb 9, 2022
1 parent 04a6f52 commit f30e4de
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
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_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

0 comments on commit f30e4de

Please sign in to comment.