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

hpk at codespeak.net hpk at codespeak.net
Sat Jan 29 17:57:26 CET 2005


Author: hpk
Date: Sat Jan 29 17:57:26 2005
New Revision: 8733

Modified:
   py/dist/py/test/drive.py
Log:
accept None from (possibly custom) Collectors 


Modified: py/dist/py/test/drive.py
==============================================================================
--- py/dist/py/test/drive.py	(original)
+++ py/dist/py/test/drive.py	Sat Jan 29 17:57:26 2005
@@ -73,6 +73,8 @@
                 raise self.Exit 
             if self.option.exitfirstproblem:
                 raise self.Exit()
+        elif obj is None: 
+            pass # ok, we allow None to mean skip this item/collector 
         else:
             raise TypeError("%r is not a Item or Collector instance" % obj)
 



More information about the pytest-commit mailing list