mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +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
|
@ -46,7 +46,7 @@ class CreationTestCase(unittest.TestCase):
|
|||
def testTypeCheck(self):
|
||||
# Test type checking by settimeout()
|
||||
self.sock.settimeout(0)
|
||||
self.sock.settimeout(0L)
|
||||
self.sock.settimeout(0)
|
||||
self.sock.settimeout(0.0)
|
||||
self.sock.settimeout(None)
|
||||
self.assertRaises(TypeError, self.sock.settimeout, "")
|
||||
|
@ -59,7 +59,7 @@ class CreationTestCase(unittest.TestCase):
|
|||
def testRangeCheck(self):
|
||||
# Test range checking by settimeout()
|
||||
self.assertRaises(ValueError, self.sock.settimeout, -1)
|
||||
self.assertRaises(ValueError, self.sock.settimeout, -1L)
|
||||
self.assertRaises(ValueError, self.sock.settimeout, -1)
|
||||
self.assertRaises(ValueError, self.sock.settimeout, -1.0)
|
||||
|
||||
def testTimeoutThenBlocking(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue