Mercurial > hg
comparison tests/run-tests.py @ 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 | 0adc22a0b6b3 |
children | af6e6a0781d7 |
comparison
equal
deleted
inserted
replaced
25032:1db2127d2373 | 25033:2bdd9e442bcc |
---|---|
73 import simplejson as json | 73 import simplejson as json |
74 except ImportError: | 74 except ImportError: |
75 json = None | 75 json = None |
76 | 76 |
77 processlock = threading.Lock() | 77 processlock = threading.Lock() |
78 | |
79 if sys.version_info > (3, 0, 0): | |
80 xrange = range # we use xrange in one place, and we'd rather not use range | |
78 | 81 |
79 # subprocess._cleanup can race with any Popen.wait or Popen.poll on py24 | 82 # subprocess._cleanup can race with any Popen.wait or Popen.poll on py24 |
80 # http://bugs.python.org/issue1731717 for details. We shouldn't be producing | 83 # http://bugs.python.org/issue1731717 for details. We shouldn't be producing |
81 # zombies but it's pretty harmless even if we do. | 84 # zombies but it's pretty harmless even if we do. |
82 if sys.version_info < (2, 5): | 85 if sys.version_info < (2, 5): |