mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
Rip out 'long' and 'L'-suffixed integer literals.
(Rough first cut.)
This commit is contained in:
parent
fc7bb8c786
commit
e2a383d062
146 changed files with 1446 additions and 1477 deletions
|
@ -86,11 +86,11 @@ class SliceTest(unittest.TestCase):
|
|||
slice(100, -100, -1).indices(10),
|
||||
slice(None, None, -1).indices(10)
|
||||
)
|
||||
self.assertEqual(slice(-100L, 100L, 2L).indices(10), (0, 10, 2))
|
||||
self.assertEqual(slice(-100, 100, 2).indices(10), (0, 10, 2))
|
||||
|
||||
self.assertEqual(range(10)[::sys.maxint - 1], [0])
|
||||
|
||||
self.assertRaises(OverflowError, slice(None).indices, 1L<<100)
|
||||
self.assertRaises(OverflowError, slice(None).indices, 1<<100)
|
||||
|
||||
def test_main():
|
||||
test_support.run_unittest(SliceTest)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue