diff --git a/src/pluggy/_manager.py b/src/pluggy/_manager.py index 1b994f25..604545cc 100644 --- a/src/pluggy/_manager.py +++ b/src/pluggy/_manager.py @@ -224,7 +224,7 @@ def unregister( hookcaller._remove_plugin(plugin) # if self._name2plugin[name] == None registration was blocked: ignore - if self._name2plugin.get(name): + if self._name2plugin.get(name) is not None: assert name is not None del self._name2plugin[name]