[Zope-Checkins] CVS: Zope3 - test.py:1.1.2.15

Jim Fulton jim@zope.com
Fri, 7 Jun 2002 10:06:33 -0400


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

Modified Files:
      Tag: Zope-3x-branch
	test.py 
Log Message:
Moved the argument processing into a function to make it easier to run
tests from a Python prompt.


=== Zope3/test.py 1.1.2.14 => 1.1.2.15 ===
         runner(files, test_filter, debug)
 
-if __name__ == "__main__":
+
+def process_args():
     import getopt
+    global module_filter
+    global test_filter
+    global VERBOSE
+    global LOOP
+    global debug
+    global build
+    global gcthresh
 
     module_filter = None
     test_filter = None
@@ -329,3 +337,7 @@
         print err
         print sys.path
         raise
+
+
+if __name__ == "__main__":
+    process_args()