b3, fix (likelY) windows-path-comparison related issue at plugin registration
link to PyPI --HG-- branch : trunk
This commit is contained in:
@@ -33,7 +33,8 @@ class PluginManager(object):
|
||||
def register(self, plugin, name=None):
|
||||
assert not self.isregistered(plugin)
|
||||
name = self._getpluginname(plugin, name)
|
||||
assert name not in self.impname2plugin
|
||||
if name in self.impname2plugin:
|
||||
return False
|
||||
self.impname2plugin[name] = plugin
|
||||
self.hook.pytest_plugin_registered(plugin=plugin)
|
||||
self._checkplugin(plugin)
|
||||
|
||||
Reference in New Issue
Block a user