cpython: 61626c3f3a54 (original) (raw)
Mercurial > cpython
changeset 69086:61626c3f3a54
Issue #11393: get more information on assertion error (test_faulthandler) [#11393]
Victor Stinner victor.stinner@haypocalc.com | |
---|---|
date | Thu, 31 Mar 2011 19:07:58 +0200 |
parents | 0f3dbf93ac06 |
children | d9a1a2eb3069 |
files | Lib/test/test_faulthandler.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-)[+] [-] Lib/test/test_faulthandler.py 4 |
line wrap: on
line diff
--- a/Lib/test/test_faulthandler.py +++ b/Lib/test/test_faulthandler.py @@ -354,7 +354,7 @@ def func(repeat, cancel, timeout): faulthandler.cancel_dump_tracebacks_later() b = time.time() # Check that sleep() was not interrupted
if cancel: pause = timeout * 1.5 @@ -362,7 +362,7 @@ def func(repeat, cancel, timeout): time.sleep(pause) b = time.time() # Check that sleep() was not interrupted
assert (b -a) >= pause[](#l1.16)
assert (b - a) >= pause, "{{}} < {{}}".format(b - a, pause)[](#l1.17)