Commit 88915c0d authored by Stefan Behnel's avatar Stefan Behnel

improve robustness of xmlrunner in face of custom test error handling...

improve robustness of xmlrunner in face of custom test error handling mechanisms in Python regression test suite
parent ee2b2007
...@@ -212,6 +212,9 @@ class _XMLTestResult(_TextTestResult): ...@@ -212,6 +212,9 @@ 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):
print("Unexpected test result type: %s" % test_info)
continue
testcase = type(test_info.test_method) testcase = type(test_info.test_method)
# Ignore module name if it is '__main__' # Ignore module name if it is '__main__'
......
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