[py-svn] r38249 - py/trunk/py/test
fijal at codespeak.net
fijal at codespeak.net
Fri Feb 9 14:24:10 CET 2007
Author: fijal
Date: Fri Feb 9 14:24:08 2007
New Revision: 38249
Modified:
py/trunk/py/test/config.py
Log:
It seems that there was somehow different idea in mind, but I actually
do not get it.
Right now there is no way to override default session other than
from py.__.test import config; config.TerminalSession = 'name_to_import'
which is scary. Holger please take a look.
Modified: py/trunk/py/test/config.py
==============================================================================
--- py/trunk/py/test/config.py (original)
+++ py/trunk/py/test/config.py Fri Feb 9 14:24:08 2007
@@ -146,6 +146,10 @@
return self.conftest.rget(self.option.session)
else:
name = self._getsessionname()
+ try:
+ return self.conftest.rget(name)
+ except KeyError:
+ pass
importpath = globals()[name]
mod = __import__(importpath, None, None, '__doc__')
return getattr(mod, name)
More information about the py-svn
mailing list