Issue 705836: Fix struct.pack(">f", 1e40) to behave consistently
commit178dc4241412902cd47c5c3f5db8541cb293050a
authormark.dickinson <mark.dickinson@6015fed2-1504-0410-9fe1-9d1591cc4771>
Fri, 14 Mar 2008 14:23:37 +0000 (14 14:23 +0000)
committermark.dickinson <mark.dickinson@6015fed2-1504-0410-9fe1-9d1591cc4771>
Fri, 14 Mar 2008 14:23:37 +0000 (14 14:23 +0000)
treef21dc1af9c76911437cc9becb4b0d43319757d48
parent57f439998bcd4617d02c4156cc15f7c7654062ad
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.

git-svn-id: http://svn.python.org/projects/python/trunk@61383 6015fed2-1504-0410-9fe1-9d1591cc4771
Lib/test/test_struct.py
Misc/NEWS
Objects/floatobject.c