mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +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
|
@ -866,13 +866,13 @@ class ListTest(unittest.TestCase):
|
|||
|
||||
@bigmemtest(minsize=_2G // 5 + 2, memuse=8 * 5)
|
||||
def test_index(self, size):
|
||||
l = [1L, 2L, 3L, 4L, 5L] * size
|
||||
l = [1, 2, 3, 4, 5] * size
|
||||
size *= 5
|
||||
self.assertEquals(l.index(1), 0)
|
||||
self.assertEquals(l.index(5, size - 5), size - 1)
|
||||
self.assertEquals(l.index(5, size - 5, size), size - 1)
|
||||
self.assertRaises(ValueError, l.index, 1, size - 4, size)
|
||||
self.assertRaises(ValueError, l.index, 6L)
|
||||
self.assertRaises(ValueError, l.index, 6)
|
||||
|
||||
# This tests suffers from overallocation, just like test_append.
|
||||
@bigmemtest(minsize=_2G + 10, memuse=9)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue