Allow disabling of python plugin

Fixes https://github.com/pytest-dev/pytest/issues/5277.
This commit is contained in:
Daniel Hahler
2019-05-16 16:30:40 +02:00
parent d94b4b031f
commit 93fd9debe3
5 changed files with 28 additions and 10 deletions

View File

@@ -113,16 +113,16 @@ def directory_arg(path, optname):
# Plugins that cannot be disabled via "-p no:X" currently.
essential_plugins = (
essential_plugins = ( # fmt: off
"mark",
"main",
"runner",
"python",
"fixtures",
"helpconfig", # Provides -p.
)
) # fmt: on
default_plugins = essential_plugins + (
"python",
"terminal",
"debugging",
"unittest",