This commit is contained in:
Roland Puntaier
2017-11-28 16:47:12 +01:00
parent 4d2f05e4b9
commit 4ea7bbc197

View File

@@ -417,7 +417,7 @@ class PytestPluginManager(PluginManager):
# _pytest prefix.
assert isinstance(modname, (six.text_type, str)), "module name as text required, got %r" % modname
modname = str(modname)
if self.get_plugin(modname) is not None:
if self.is_blocked(modname) or self.get_plugin(modname) is not None:
return
if modname in builtin_plugins:
importspec = "_pytest." + modname