summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-03-31 17:07:58 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-03-31 17:07:58 (GMT)
commiteb50e51a0fd6e182a7543eddfe039226b1a80262 (patch)
tree9b81b27ab8c2503f63702a721a1789f4d82330c9 /Lib/test
parent7d648a0cecfc90bb1b24e4effd5ee9020167c064 (diff)
downloadcpython-eb50e51a0fd6e182a7543eddfe039226b1a80262.zip
cpython-eb50e51a0fd6e182a7543eddfe039226b1a80262.tar.gz
cpython-eb50e51a0fd6e182a7543eddfe039226b1a80262.tar.bz2
Issue #11393: get more information on assertion error (test_faulthandler)
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_faulthandler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_faulthandler.py b/Lib/test/test_faulthandler.py
index 1a3f5e2..1da5cae 100644
--- 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
- assert (b -a) >= pause
+ assert (b - a) >= pause, "{{}} < {{}}".format(b - a, pause)
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
+ assert (b - a) >= pause, "{{}} < {{}}".format(b - a, pause)
timeout = 0.5
repeat = {repeat}