Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_long.py @ 44683:357b365560f4
long(float('nan')) raises an OverflowError as discussed on the mailing list a week ago
| author | Christian Heimes <christian@cheimes.de> |
|---|---|
| date | Tue, 15 Jan 2008 02:01:20 +0000 |
| parents | d2c1ba099290 |
| children | 727cc810d690 |
line wrap: on
line diff
--- a/Lib/test/test_long.py Tue Jan 15 01:58:48 2008 +0000 +++ b/Lib/test/test_long.py Tue Jan 15 02:01:20 2008 +0000 @@ -539,7 +539,7 @@ 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)
