diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2023-04-16 22:19:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-16 22:19:44 (GMT) |
commit | ff3303e49c13495d8d9cf1dc0cf0624bbda1d3ae (patch) | |
tree | 7e54b6cec286228e8c1412bba6563efc57910e86 /Lib/unittest | |
parent | a210cac77649a18bf0eb7354c9187ec91ccb078a (diff) | |
download | cpython-ff3303e49c13495d8d9cf1dc0cf0624bbda1d3ae.zip cpython-ff3303e49c13495d8d9cf1dc0cf0624bbda1d3ae.tar.gz cpython-ff3303e49c13495d8d9cf1dc0cf0624bbda1d3ae.tar.bz2 |
gh-48330: address review comments to PR-12271 (#103209)
address review comments to PR-12271
Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
Diffstat (limited to 'Lib/unittest')
-rw-r--r-- | Lib/unittest/result.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/unittest/result.py b/Lib/unittest/result.py index fa9bea4..7757dba 100644 --- a/Lib/unittest/result.py +++ b/Lib/unittest/result.py @@ -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)) |