[py-svn] r31015 - py/dist/py/test

guido at codespeak.net guido at codespeak.net
Sat Aug 5 00:21:31 CEST 2006


Author: guido
Date: Sat Aug  5 00:21:31 2006
New Revision: 31015

Modified:
   py/dist/py/test/config.py
Log:
Oops, had checked in debug print instead of the fix :(


Modified: py/dist/py/test/config.py
==============================================================================
--- py/dist/py/test/config.py	(original)
+++ py/dist/py/test/config.py	Sat Aug  5 00:21:31 2006
@@ -79,8 +79,7 @@
         optgroup.add_options(specs) 
         parser.add_option_group(optgroup)
         for opt in specs: 
-            if hasattr(opt, 'default'):
-                print 'foo'
+            if hasattr(opt, 'default') and opt.dest:
                 setattr(cls._config.option, opt.dest, opt.default) 
         return cls._config.option 
     addoptions = classmethod(addoptions) 



More information about the pytest-commit mailing list