Commit 631e8b33 authored by Stefan Behnel's avatar Stefan Behnel

test runner output fixes

parent 00c0b092
...@@ -2141,11 +2141,11 @@ def runtests(options, cmd_args, coverage=None): ...@@ -2141,11 +2141,11 @@ def runtests(options, cmd_args, coverage=None):
test_runner = XMLTestRunner(output=xml_output_dir, test_runner = XMLTestRunner(output=xml_output_dir,
verbose=options.verbosity > 0) verbose=options.verbosity > 0)
if options.failfast: if options.failfast:
sys.stderr.write("--failfast not supported with XML runner") 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 and sys.version_info < (2, 7):
sys.stderr.write("--failfast not supported with Python < 2.7") sys.stderr.write("--failfast not supported with Python < 2.7\n")
else: else:
text_runner_options['failfast'] = True text_runner_options['failfast'] = True
test_runner = unittest.TextTestRunner(verbosity=options.verbosity, **text_runner_options) test_runner = unittest.TextTestRunner(verbosity=options.verbosity, **text_runner_options)
......
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