summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2008-01-15 02:01:20 (GMT)
committerChristian Heimes <christian@cheimes.de>2008-01-15 02:01:20 (GMT)
commit386cd1e3c950b038fefefbf5ad887fd7f3215dc8 (patch)
treecfe938b184856e4e94c9dc4f3519c371a943fd3d /Lib
parent62fe8a8e1cda9b4568453bee7e514aae06dfafd1 (diff)
downloadcpython-386cd1e3c950b038fefefbf5ad887fd7f3215dc8.zip
cpython-386cd1e3c950b038fefefbf5ad887fd7f3215dc8.tar.gz
cpython-386cd1e3c950b038fefefbf5ad887fd7f3215dc8.tar.bz2
long(float('nan')) raises an OverflowError as discussed on the mailing list a week ago
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_long.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_long.py b/Lib/test/test_long.py
index 09adc74..18bb7a4 100644
--- a/Lib/test/test_long.py
+++ b/Lib/test/test_long.py
@@ -539,7 +539,7 @@ class LongTest(unittest.TestCase):
def test_nan_inf(self):
self.assertRaises(OverflowError, int, float('inf'))
- self.assertEqual(int(float('nan')), 0)
+ self.assertRaises(OverflowError, int, float('nan'))
def test_main():
test_support.run_unittest(LongTest)