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

Jim Fulton jim@zope.com
Wed, 18 Sep 2002 11:06:20 -0400


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

Modified Files:
	test.py 
Log Message:
Updated uses of Boolean fields to use True and False (rather than 1 and 0).

=== Zope3/test.py 1.12 => 1.13 ===
--- Zope3/test.py:1.12	Thu Aug  8 10:15:28 2002
+++ Zope3/test.py	Wed Sep 18 11:05:50 2002
@@ -306,7 +306,10 @@
         runner(files, test_filter, debug)
 
 
-def process_args():
+def process_args(argv=None):
+    if argv is None:
+        argv = sys.argv
+        
     import getopt
     global module_filter
     global test_filter
@@ -328,11 +331,10 @@
     gcflags = []
 
     try:
-        opts, args = getopt.getopt(sys.argv[1:], 'vdLbhCumg:G:',
-                                   ['help'])
+        opts, args = getopt.getopt(argv[1:], 'vdLbhCumg:G:', ['help'])
     except getopt.error, msg:
         print msg
-        print "Try `python %s -h' for more information." % sys.argv[0]
+        print "Try `python %s -h' for more information." % argv[0]
         sys.exit(2)
 
     for k, v in opts: