changeset 19414:b927ccf0f27d

run-tests: only lock Popen wait/poll on python 2.4 It can cause scheduling bubbles and is not necessary on newer pythons.
author Brendan Cully <brendan@kublai.com>
date Wed, 17 Jul 2013 13:02:12 -0700
parents a4de0d3dc35a
children a0699972e75a
files tests/run-tests.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Wed Jul 17 12:45:12 2013 -0700
+++ b/tests/run-tests.py	Wed Jul 17 13:02:12 2013 -0700
@@ -76,8 +76,9 @@
                          close_fds=closefds,
                          stdin=subprocess.PIPE, stdout=subprocess.PIPE,
                          stderr=subprocess.STDOUT)
-    p.wait = waitlocked(p.wait)
-    p.poll = waitlocked(p.poll)
+    if sys.version_info[1] < 5:
+        p.wait = waitlocked(p.wait)
+        p.poll = waitlocked(p.poll)
     processlock.release()
 
     p.fromchild = p.stdout