changeset 19312:aedb4d0012ff

run-tests: call Threads constructor with keyword arguments This is suggested in the python documentation (on http://docs.python.org/2/library/threading.html#thread-objects)
author simon@laptop-tosh
date Sun, 09 Jun 2013 16:49:08 +0200
parents ad16e5c7a429
children 3b96d6e44a4d
files tests/run-tests.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Sun Jun 09 16:42:55 2013 +0200
+++ b/tests/run-tests.py	Sun Jun 09 16:49:08 2013 +0200
@@ -1089,7 +1089,7 @@
                 test = tests.pop(0)
                 if options.loop:
                     tests.append(test)
-                t = threading.Thread(None, job, args=(test, count))
+                t = threading.Thread(target=job, args=(test, count))
                 t.start()
                 running += 1
                 count += 1