Commit b1f1775c authored by Stefan Behnel's avatar Stefan Behnel

fix test runner option

parent 0fb7c071
...@@ -2144,7 +2144,8 @@ def runtests(options, cmd_args, coverage=None): ...@@ -2144,7 +2144,8 @@ def runtests(options, cmd_args, coverage=None):
sys.stderr.write("--failfast not supported with XML runner\n") sys.stderr.write("--failfast not supported with XML runner\n")
else: else:
text_runner_options = {} text_runner_options = {}
if options.failfast and sys.version_info < (2, 7): if options.failfast:
if sys.version_info < (2, 7):
sys.stderr.write("--failfast not supported with Python < 2.7\n") sys.stderr.write("--failfast not supported with Python < 2.7\n")
else: else:
text_runner_options['failfast'] = True text_runner_options['failfast'] = True
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment