Commit c9729d0d authored by Stefan Behnel's avatar Stefan Behnel

fix error reporting in xml test runner

--HG--
extra : transplant_source : jsU4%A9%5E%24%81S%10%94%BF%FC%BD%E9-%CA%96%BF%E2
parent 6c35aa70
...@@ -213,7 +213,7 @@ class _XMLTestResult(_TextTestResult): ...@@ -213,7 +213,7 @@ class _XMLTestResult(_TextTestResult):
for tests in (self.successes, self.failures, self.errors): for tests in (self.successes, self.failures, self.errors):
for test_info in tests: for test_info in tests:
if not isinstance(test_info, _TestInfo): if not isinstance(test_info, _TestInfo):
print("Unexpected test result type: %s" % test_info) print("Unexpected test result type: %r" % (test_info,))
continue continue
testcase = type(test_info.test_method) testcase = type(test_info.test_method)
......
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