run-tests: remove some unnecessary globals stable
authorMatt Mackall <mpm@selenic.com>
Mon, 27 May 2013 15:24:19 -0500
branchstable
changeset 1240 3ee0bfc336f7
parent 1239 02112fca2ff3
child 1241 bc56ed64a2c8
run-tests: remove some unnecessary globals [ original upstream message ]
tests/run-tests.py
--- a/tests/run-tests.py	Fri May 24 14:30:43 2013 -0500
+++ b/tests/run-tests.py	Mon May 27 15:24:19 2013 -0500
@@ -836,8 +836,6 @@
 def runone(options, test):
     '''returns a result element: (code, test, msg)'''
 
-    global iolock
-
     def skip(msg):
         if options.verbose:
             log("\nSkipping %s: %s" % (testpath, msg))
@@ -1152,8 +1150,6 @@
 iolock = threading.Lock()
 
 def runqueue(options, tests):
-    global results, resultslock
-
     for test in tests:
         code, test, msg = runone(options, test)
         resultslock.acquire()