b3, fix (likelY) windows-path-comparison related issue at plugin registration

link to PyPI

--HG--
branch : trunk
This commit is contained in:
holger krekel
2009-06-19 13:05:44 +02:00
parent 6de02a7976
commit 53dc595113
7 changed files with 12 additions and 6 deletions

View File

@@ -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)