[Zope-CVS] CVS: Zope3 - test.py:1.10

Jeremy Hylton jeremy@zope.com
Wed, 17 Jul 2002 19:09:44 -0400


Update of /cvs-repository/Zope3
In directory cvs.zope.org:/tmp/cvs-serv5155

Modified Files:
	test.py 
Log Message:
Check for get_suite() returning None.

Add -C option for pychecker.


=== Zope3/test.py 1.9 => 1.10 ===
     run. The debug (-d), verbose (-v), and Loop (-L) options will be
     ignored. The testfilter filter is also not applied.
 
+-C  use pychecker
+
 modfilter
 testfilter
     Case-sensitive regexps to limit which tests are run, used in search
@@ -272,6 +274,8 @@
     suite = unittest.TestSuite()
     for file in files:
         s = get_suite(file)
+        if s is None:
+            continue
         if test_filter is not None:
             s = filter_testcases(s, test_filter)
         suite.addTest(s)
@@ -334,6 +338,7 @@
     for k, v in opts:
         if k == '-v':
             VERBOSE += 1
+
         elif k == '-d':
             debug = 1
         elif k == '-L':
@@ -344,6 +349,7 @@
             print __doc__
             sys.exit(0)
         elif k == '-C':
+            os.environ['PYCHECKER'] = "-e -q"
             import pychecker.checker
         elif k == '-g':
             gcthresh = int(v)