mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
gh-48330: address review comments to PR-12271 (#103209)
address review comments to PR-12271 Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
This commit is contained in:
parent
a210cac776
commit
ff3303e49c
3 changed files with 11 additions and 11 deletions
|
|
@ -159,7 +159,11 @@ class TestResult(object):
|
|||
self.unexpectedSuccesses.append(test)
|
||||
|
||||
def addDuration(self, test, elapsed):
|
||||
"""Called when a test finished to run, regardless of its outcome."""
|
||||
"""Called when a test finished to run, regardless of its outcome.
|
||||
*test* is the test case corresponding to the test method.
|
||||
*elapsed* is the time represented in seconds, and it includes the
|
||||
execution of cleanup functions.
|
||||
"""
|
||||
# support for a TextTestRunner using an old TestResult class
|
||||
if hasattr(self, "collectedDurations"):
|
||||
self.collectedDurations.append((test, elapsed))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue