mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed PY-13961 Rerun Failed Tests: test suite is always empty for unittests
This commit is contained in:
@@ -103,13 +103,13 @@ class TeamcityTestResult(TestResult):
|
||||
TestResult.addSuccess(self, test)
|
||||
|
||||
def addError(self, test, err):
|
||||
self.init_suite(test)
|
||||
location = self.init_suite(test)
|
||||
self.current_failed = True
|
||||
TestResult.addError(self, test, err)
|
||||
|
||||
err = self._exc_info_to_string(err, test)
|
||||
|
||||
self.messages.testStarted(self.getTestName(test))
|
||||
self.messages.testStarted(self.getTestName(test), location=location)
|
||||
self.messages.testError(self.getTestName(test),
|
||||
message='Error', details=err)
|
||||
|
||||
@@ -119,7 +119,7 @@ class TeamcityTestResult(TestResult):
|
||||
return error_value.split('assert')[-1].strip()
|
||||
|
||||
def addFailure(self, test, err):
|
||||
self.init_suite(test)
|
||||
location = self.init_suite(test)
|
||||
self.current_failed = True
|
||||
TestResult.addFailure(self, test, err)
|
||||
|
||||
@@ -141,7 +141,7 @@ class TeamcityTestResult(TestResult):
|
||||
first = second = ""
|
||||
err = self._exc_info_to_string(err, test)
|
||||
|
||||
self.messages.testStarted(self.getTestName(test))
|
||||
self.messages.testStarted(self.getTestName(test), location=location)
|
||||
self.messages.testFailed(self.getTestName(test),
|
||||
message='Failure', details=err, expected=first, actual=second)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user