* add pytest_nose plugin

* have unittest functions always receive a fresh instance

--HG--
branch : 1.0.x
This commit is contained in:
holger krekel
2009-08-10 11:27:13 +02:00
parent a01e4769cc
commit b552f6eb46
9 changed files with 286 additions and 15 deletions

View File

@@ -241,15 +241,10 @@ class TerminalReporter:
if self.config.option.traceconfig:
plugins = []
for plugin in self.config.pluginmanager.comregistry:
name = plugin.__class__.__name__
if name.endswith("Plugin"):
name = name[:-6]
#if name == "Conftest":
# XXX get filename
plugins.append(name)
else:
plugins.append(str(plugin))
name = getattr(plugin, '__name__', None)
if name is None:
name = plugin.__class__.__name__
plugins.append(name)
plugins = ", ".join(plugins)
self.write_line("active plugins: %s" %(plugins,))
for i, testarg in py.builtin.enumerate(self.config.args):