From: Christian Heimes Date: Fri, 4 Jan 2008 03:22:53 +0000 (+0000) Subject: Fixed test_long X-Git-Tag: v3.0a3~252 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1aa7b30ba08ad18da57e22a45409604177b71847;p=thirdparty%2FPython%2Fcpython.git Fixed test_long --- diff --git a/Lib/test/test_long.py b/Lib/test/test_long.py index 223ef7cae655..09adc7499187 100644 --- a/Lib/test/test_long.py +++ b/Lib/test/test_long.py @@ -538,8 +538,8 @@ class LongTest(unittest.TestCase): self.assertRaises(ValueError, format, 3, "s") def test_nan_inf(self): - self.assertRaises(OverflowError, long, float('inf')) - self.assertEqual(long(float('nan')), 0L) + self.assertRaises(OverflowError, int, float('inf')) + self.assertEqual(int(float('nan')), 0) def test_main(): test_support.run_unittest(LongTest)