mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed tests
This commit is contained in:
@@ -69,6 +69,12 @@ class TeamcityDocTestResult(TeamcityTestResult):
|
||||
self.messages.testError(self.getTestName(test),
|
||||
message='Error', details=err)
|
||||
|
||||
def stopTest(self, test):
|
||||
start = getattr(test, "startTime", datetime.datetime.now())
|
||||
d = datetime.datetime.now() - start
|
||||
duration=d.microseconds / 1000 + d.seconds * 1000 + d.days * 86400000
|
||||
self.messages.testFinished(self.getTestName(test), duration=int(duration))
|
||||
|
||||
class DocTestRunner(doctest.DocTestRunner):
|
||||
"""
|
||||
Special runner for doctests,
|
||||
|
||||
Reference in New Issue
Block a user