Show More
@@ -90,7 +90,7 b' if sys.version_info > (3, 5, 0):' | |||
|
90 | 90 | return p.decode('utf-8') |
|
91 | 91 | |
|
92 | 92 | elif sys.version_info >= (3, 0, 0): |
|
93 |
print('%s is only supported on Python 3.5+ and 2. |
|
|
93 | print('%s is only supported on Python 3.5+ and 2.7, not %s' % | |
|
94 | 94 | (sys.argv[0], '.'.join(str(v) for v in sys.version_info[:3]))) |
|
95 | 95 | sys.exit(70) # EX_SOFTWARE from `man 3 sysexit` |
|
96 | 96 | else: |
@@ -317,7 +317,7 b' def getparser():' | |||
|
317 | 317 | parser.add_option("--ipv6", action="store_true", |
|
318 | 318 | help="prefer IPv6 to IPv4 for network related tests") |
|
319 | 319 | parser.add_option("-3", "--py3k-warnings", action="store_true", |
|
320 |
help="enable Py3k warnings on Python 2. |
|
|
320 | help="enable Py3k warnings on Python 2.7+") | |
|
321 | 321 | # This option should be deleted once test-check-py3-compat.t and other |
|
322 | 322 | # Python 3 tests run with Python 3. |
|
323 | 323 | parser.add_option("--with-python3", metavar="PYTHON3", |
@@ -435,7 +435,7 b' def parseargs(args, parser):' | |||
|
435 | 435 | if options.py3k_warnings: |
|
436 | 436 | if PYTHON3: |
|
437 | 437 | parser.error( |
|
438 |
'--py3k-warnings can only be used on Python 2. |
|
|
438 | '--py3k-warnings can only be used on Python 2.7') | |
|
439 | 439 | if options.with_python3: |
|
440 | 440 | if PYTHON3: |
|
441 | 441 | parser.error('--with-python3 cannot be used when executing with ' |
General Comments 0
You need to be logged in to leave comments.
Login now