diff options
author | Christian Heimes <christian@cheimes.de> | 2008-01-04 03:22:53 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2008-01-04 03:22:53 (GMT) |
commit | 1aa7b30ba08ad18da57e22a45409604177b71847 (patch) | |
tree | 738c6bfd48661a920047d1062e6579aa9f889494 /Lib/test/test_long.py | |
parent | 3f419afac56065233fd9a69db3b5e2d4c6113648 (diff) | |
download | cpython-1aa7b30ba08ad18da57e22a45409604177b71847.zip cpython-1aa7b30ba08ad18da57e22a45409604177b71847.tar.gz cpython-1aa7b30ba08ad18da57e22a45409604177b71847.tar.bz2 |
Fixed test_long
Diffstat (limited to 'Lib/test/test_long.py')
-rw-r--r-- | Lib/test/test_long.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_long.py b/Lib/test/test_long.py index 223ef7c..09adc74 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) |