run-tests: remove some unnecessary globals
authorMatt Mackall <mpm@selenic.com>
Mon, 27 May 2013 15:24:19 -0500
changeset 19252 9e9c407e0d1f
parent 19251 6857f53456f2
child 19261 043abd6a91d1
run-tests: remove some unnecessary globals
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()