summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_struct.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2008-03-14 14:23:37 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2008-03-14 14:23:37 (GMT)
commitc23b8a7af9b1548b645a79c5ea37a3ba780750ab (patch)
tree828190fa47a6d20587b59936afacba387755eaa2 /Lib/test/test_struct.py
parent6119540d70ef1ad7ff6ad6940f185cc972164494 (diff)
downloadcpython-c23b8a7af9b1548b645a79c5ea37a3ba780750ab.zip
cpython-c23b8a7af9b1548b645a79c5ea37a3ba780750ab.tar.gz
cpython-c23b8a7af9b1548b645a79c5ea37a3ba780750ab.tar.bz2
Issue 705836: Fix struct.pack(">f", 1e40) to behave consistently
across platforms: it should now raise OverflowError on all platforms. (Previously it raised OverflowError only on non IEEE 754 platforms.) Also fix the (already existing) test for this behaviour so that it actually raises TestFailed instead of just referencing it.
Diffstat (limited to 'Lib/test/test_struct.py')
-rw-r--r--Lib/test/test_struct.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_struct.py b/Lib/test/test_struct.py
index d226115..3ede005 100644
--- a/Lib/test/test_struct.py
+++ b/Lib/test/test_struct.py
@@ -482,7 +482,7 @@ def test_705836():
except OverflowError:
pass
else:
- TestFailed("expected OverflowError")
+ raise TestFailed("expected OverflowError")
test_705836()