# HG changeset patch # User Matt Mackall # Date 1369686259 18000 # Node ID 3ee0bfc336f7dff3d884440a053990d783371867 # Parent 02112fca2ff3d4852e28093eac21b9965a21787e run-tests: remove some unnecessary globals [ original upstream message ] diff -r 02112fca2ff3 -r 3ee0bfc336f7 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()