changeset 25157:a8d22895a575

run-tests: introduce PYTHON3 boolean constant (issue4668) This will avoid open-coding lots of version_info checks later in the file.
author Augie Fackler <augie@google.com>
date Sun, 17 May 2015 21:12:33 -0400
parents c87257002598
children 3906b9783cd9
files tests/run-tests.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Sun May 17 21:15:45 2015 -0400
+++ b/tests/run-tests.py	Sun May 17 21:12:33 2015 -0400
@@ -79,7 +79,10 @@
 processlock = threading.Lock()
 
 if sys.version_info > (3, 0, 0):
+    PYTHON3 = True
     xrange = range # we use xrange in one place, and we'd rather not use range
+else:
+    PYTHON3 = False
 
 def checkportisavailable(port):
     """return true if a port seems free to bind on localhost"""