mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +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
|
|
@ -90,10 +90,10 @@ class ReprTests(unittest.TestCase):
|
|||
def test_numbers(self):
|
||||
eq = self.assertEquals
|
||||
eq(r(123), repr(123))
|
||||
eq(r(123L), repr(123L))
|
||||
eq(r(123), repr(123))
|
||||
eq(r(1.0/3), repr(1.0/3))
|
||||
|
||||
n = 10L**100
|
||||
n = 10**100
|
||||
expected = repr(n)[:18] + "..." + repr(n)[-19:]
|
||||
eq(r(n), expected)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue