We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71c1cb3 commit 6aaaf0eCopy full SHA for 6aaaf0e
testing/test_pluggy.py
@@ -656,6 +656,20 @@ def hello_myhook(self, arg1):
656
results = pm.hook.hello_myhook(arg1=17)
657
assert results == [18, 18]
658
659
+ def test_prefix_hookimpl_dontmatch_module(self):
660
+ pm = PluginManager(hookspec.project_name, "hello_")
661
+
662
+ class BadPlugin:
663
+ def hello_fine(self):
664
+ pass
665
+ hello_fine.optionalhook = True
666
667
+ hello_module = __import__('email')
668
669
+ pm.register(BadPlugin())
670
+ pm.check_pending()
671
672
673
674
def test_parse_hookimpl_override():
675
class MyPluginManager(PluginManager):
0 commit comments