Commit c59866a
mark.dickinson
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-9d1591cc47711 parent 6eedb91 commit c59866a
3 files changed
Lines changed: 13 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
485 | | - | |
| 485 | + | |
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1751 | 1751 | | |
1752 | 1752 | | |
1753 | 1753 | | |
1754 | | - | |
1755 | | - | |
1756 | | - | |
1757 | 1754 | | |
1758 | 1755 | | |
1759 | 1756 | | |
| |||
1833 | 1830 | | |
1834 | 1831 | | |
1835 | 1832 | | |
1836 | | - | |
1837 | | - | |
1838 | | - | |
1839 | | - | |
1840 | 1833 | | |
1841 | 1834 | | |
1842 | 1835 | | |
1843 | 1836 | | |
1844 | 1837 | | |
1845 | 1838 | | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
1846 | 1842 | | |
1847 | 1843 | | |
1848 | 1844 | | |
1849 | 1845 | | |
1850 | 1846 | | |
1851 | | - | |
| 1847 | + | |
1852 | 1848 | | |
1853 | 1849 | | |
1854 | 1850 | | |
1855 | 1851 | | |
1856 | 1852 | | |
1857 | 1853 | | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
1858 | 1858 | | |
1859 | 1859 | | |
1860 | 1860 | | |
| |||
0 commit comments