[py-svn] r63902 - py/trunk/py/test/plugin
hpk at codespeak.net
hpk at codespeak.net
Thu Apr 9 16:43:12 CEST 2009
Author: hpk
Date: Thu Apr 9 16:43:12 2009
New Revision: 63902
Modified:
py/trunk/py/test/plugin/pytest_terminal.py
Log:
bugfix
Modified: py/trunk/py/test/plugin/pytest_terminal.py
==============================================================================
--- py/trunk/py/test/plugin/pytest_terminal.py (original)
+++ py/trunk/py/test/plugin/pytest_terminal.py Thu Apr 9 16:43:12 2009
@@ -209,11 +209,16 @@
py.path.local(py.__file__).dirpath(), rev))
if self.config.option.traceconfig:
plugins = []
- for x in self.config.pluginmanager.plugins:
- if isinstance(x, str) and x.startswith("pytest_"):
- plugins.append(x[7:])
+ 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(x)) # XXX display conftest plugins more nicely
+ plugins.append(str(plugin))
+
plugins = ", ".join(plugins)
self.write_line("active plugins: %s" %(plugins,))
for i, testarg in py.builtin.enumerate(self.config.args):
More information about the pytest-commit
mailing list