mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +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
|
@ -361,9 +361,9 @@ class BytesTest(unittest.TestCase):
|
|||
def test_contains(self):
|
||||
b = bytes("abc")
|
||||
self.failUnless(ord('a') in b)
|
||||
self.failUnless(long(ord('a')) in b)
|
||||
self.failUnless(int(ord('a')) in b)
|
||||
self.failIf(200 in b)
|
||||
self.failIf(200 in b)
|
||||
self.failIf(200L in b)
|
||||
self.assertRaises(ValueError, lambda: 300 in b)
|
||||
self.assertRaises(ValueError, lambda: -1 in b)
|
||||
self.assertRaises(TypeError, lambda: None in b)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue