[py-svn] r61161 - py/branch/pytestplugin/py/test
hpk at codespeak.net
hpk at codespeak.net
Tue Jan 20 15:44:53 CET 2009
Author: hpk
Date: Tue Jan 20 15:44:52 2009
New Revision: 61161
Modified:
py/branch/pytestplugin/py/test/config.py
py/branch/pytestplugin/py/test/pmanage.py
Log:
cosmetics
Modified: py/branch/pytestplugin/py/test/config.py
==============================================================================
--- py/branch/pytestplugin/py/test/config.py (original)
+++ py/branch/pytestplugin/py/test/config.py Tue Jan 20 15:44:52 2009
@@ -42,11 +42,11 @@
self._conftest.setinitial(args)
for mod in self._conftest.getconftestmodules(None):
self.pluginmanager.consider_module(mod)
-
+ # XXX think about sorting/grouping of options from user-perspective
opts = []
for name, options in self.pluginmanager.listattr("pytest_cmdlineoptions"):
opts.extend(options)
- self.addoptions("options added by plugins", *opts)
+ self.addoptions("ungrouped options added by plugins", *opts)
def parse(self, args):
""" parse cmdline arguments into this config object.
Modified: py/branch/pytestplugin/py/test/pmanage.py
==============================================================================
--- py/branch/pytestplugin/py/test/pmanage.py (original)
+++ py/branch/pytestplugin/py/test/pmanage.py Tue Jan 20 15:44:52 2009
@@ -56,6 +56,9 @@
continue
return l
+
+# generic test methods
+
def plugintester_nocalls(impname):
pname = impname.split("_")[-1]
pm = PluginManager()
More information about the pytest-commit
mailing list