mirror of
https://github.com/python/cpython.git
synced 2025-07-28 05:34:31 +00:00
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:
parent
6119540d70
commit
c23b8a7af9
3 changed files with 13 additions and 9 deletions
|
@ -482,7 +482,7 @@ def test_705836():
|
|||
except OverflowError:
|
||||
pass
|
||||
else:
|
||||
TestFailed("expected OverflowError")
|
||||
raise TestFailed("expected OverflowError")
|
||||
|
||||
test_705836()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue