Update __init__.py

#4304
This commit is contained in:
Fabien ZARIFIAN 2018-11-04 21:55:56 +01:00 committed by GitHub
parent d1c9c54571
commit c55ca155e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -476,6 +476,8 @@ class PytestPluginManager(PluginManager):
def consider_pluginarg(self, arg):
if arg.startswith("no:"):
name = arg[3:]
if name == "cacheprovider":
self.consider_pluginarg("no:stepwise")
self.set_blocked(name)
if not name.startswith("pytest_"):
self.set_blocked("pytest_" + name)