Commit 3907cda5 authored by Christian Heimes's avatar Christian Heimes

Fixed test_long

parent 8ca8aa06
...@@ -538,8 +538,8 @@ class LongTest(unittest.TestCase): ...@@ -538,8 +538,8 @@ class LongTest(unittest.TestCase):
self.assertRaises(ValueError, format, 3, "s") self.assertRaises(ValueError, format, 3, "s")
def test_nan_inf(self): def test_nan_inf(self):
self.assertRaises(OverflowError, long, float('inf')) self.assertRaises(OverflowError, int, float('inf'))
self.assertEqual(long(float('nan')), 0L) self.assertEqual(int(float('nan')), 0)
def test_main(): def test_main():
test_support.run_unittest(LongTest) test_support.run_unittest(LongTest)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment