Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1aa7b30

Browse files
committed
Fixed test_long
1 parent 3f419af commit 1aa7b30

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test_long.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,8 +538,8 @@ def test_format(self):
538538
self.assertRaises(ValueError, format, 3, "s")
539539

540540
def test_nan_inf(self):
541-
self.assertRaises(OverflowError, long, float('inf'))
542-
self.assertEqual(long(float('nan')), 0L)
541+
self.assertRaises(OverflowError, int, float('inf'))
542+
self.assertEqual(int(float('nan')), 0)
543543

544544
def test_main():
545545
test_support.run_unittest(LongTest)

0 commit comments

Comments
 (0)