mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fixed test_long
This commit is contained in:
parent
3f419afac5
commit
1aa7b30ba0
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue