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.
This commit is contained in:
Mark Dickinson 2008-03-14 14:23:37 +00:00
parent 6119540d70
commit c23b8a7af9
3 changed files with 13 additions and 9 deletions

View file

@ -482,7 +482,7 @@ def test_705836():
except OverflowError:
pass
else:
TestFailed("expected OverflowError")
raise TestFailed("expected OverflowError")
test_705836()