##// END OF EJS Templates
tests: move Python 3.5 check higher in file...
Gregory Szorc -
r49735:431084a6 default
parent child Browse files
Show More
@@ -72,6 +72,13 b' import unittest'
72 import uuid
72 import uuid
73 import xml.dom.minidom as minidom
73 import xml.dom.minidom as minidom
74
74
75 if sys.version_info < (3, 5, 0):
76 print(
77 '%s is only supported on Python 3.5+, not %s'
78 % (sys.argv[0], '.'.join(str(v) for v in sys.version_info[:3]))
79 )
80 sys.exit(70) # EX_SOFTWARE from `man 3 sysexit`
81
75 WINDOWS = os.name == r'nt'
82 WINDOWS = os.name == r'nt'
76 shellquote = shlex.quote
83 shellquote = shlex.quote
77
84
@@ -143,12 +150,6 b' if pygmentspresent:'
143
150
144 origenviron = os.environ.copy()
151 origenviron = os.environ.copy()
145
152
146 if sys.version_info < (3, 5, 0):
147 print(
148 '%s is only supported on Python 3.5+, not %s'
149 % (sys.argv[0], '.'.join(str(v) for v in sys.version_info[:3]))
150 )
151 sys.exit(70) # EX_SOFTWARE from `man 3 sysexit`
152
153
153 xrange = range # we use xrange in one place, and we'd rather not use range
154 xrange = range # we use xrange in one place, and we'd rather not use range
154
155
General Comments 0
You need to be logged in to leave comments. Login now