summaryrefslogtreecommitdiffstats
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.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)