summaryrefslogtreecommitdiff
path: root/Lib/test/test_long.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_long.py')
-rw-r--r--Lib/test/test_long.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_long.py b/Lib/test/test_long.py
index b67c764ad5..e53fd058cf 100644
--- a/Lib/test/test_long.py
+++ b/Lib/test/test_long.py
@@ -745,7 +745,8 @@ class LongTest(unittest.TestCase):
def test_nan_inf(self):
self.assertRaises(OverflowError, long, float('inf'))
- self.assertEqual(long(float('nan')), 0L)
+ self.assertRaises(OverflowError, long, float('-inf'))
+ self.assertRaises(ValueError, long, float('nan'))
def test_main():
test_support.run_unittest(LongTest)