# HG changeset patch # User Augie Fackler # Date 2015-04-11 22:22:25 # Node ID 2bdd9e442bccb154c22581df29c50498acbfa7d5 # Parent 1db2127d23733b62d9cd70c670148bc27f1a22d2 run-tests: work around the rename of xrange to range diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -76,6 +76,9 @@ except ImportError: processlock = threading.Lock() +if sys.version_info > (3, 0, 0): + xrange = range # we use xrange in one place, and we'd rather not use range + # subprocess._cleanup can race with any Popen.wait or Popen.poll on py24 # http://bugs.python.org/issue1731717 for details. We shouldn't be producing # zombies but it's pretty harmless even if we do.