Update __init__.py

As mentionned by @RonnyPfannschmidt, use set_blocked on module stepwise (and it's brother pytest_stepwise like consider_pluginarg method does)
This commit is contained in:
Fabien ZARIFIAN 2018-11-05 10:51:15 +01:00 committed by GitHub
parent db70c75807
commit 5f61f0d2cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -478,7 +478,9 @@ class PytestPluginManager(PluginManager):
name = arg[3:]
# PR #4304 : remove stepwise if cacheprovider is blocked
if name == "cacheprovider":
self.consider_pluginarg("no:stepwise")
self.set_blocked("stepwise")
self.set_blocked("pytest_stepwise")
self.set_blocked(name)
if not name.startswith("pytest_"):
self.set_blocked("pytest_" + name)