mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +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
|
@ -17,14 +17,14 @@ class HashEqualityTestCase(unittest.TestCase):
|
|||
self.fail("hashed values differ: %r" % (objlist,))
|
||||
|
||||
def test_numeric_literals(self):
|
||||
self.same_hash(1, 1L, 1.0, 1.0+0.0j)
|
||||
self.same_hash(1, 1, 1.0, 1.0+0.0j)
|
||||
|
||||
def test_coerced_integers(self):
|
||||
self.same_hash(int(1), long(1), float(1), complex(1),
|
||||
self.same_hash(int(1), int(1), float(1), complex(1),
|
||||
int('1'), float('1.0'))
|
||||
|
||||
def test_coerced_floats(self):
|
||||
self.same_hash(long(1.23e300), float(1.23e300))
|
||||
self.same_hash(int(1.23e300), float(1.23e300))
|
||||
self.same_hash(float(0.5), complex(0.5, 0.0))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue