Mercurial > hg
changeset 25033:2bdd9e442bcc
run-tests: work around the rename of xrange to range
author | Augie Fackler <augie@google.com> |
---|---|
date | Sat, 11 Apr 2015 18:22:25 -0400 |
parents | 1db2127d2373 |
children | af6e6a0781d7 |
files | tests/run-tests.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/run-tests.py Sun Apr 12 15:34:17 2015 -0400 +++ b/tests/run-tests.py Sat Apr 11 18:22:25 2015 -0400 @@ -76,6 +76,9 @@ 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.