mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
parent
ecfeb7f095
commit
70a6b49821
246 changed files with 926 additions and 962 deletions
|
@ -58,7 +58,7 @@ L = [
|
|||
(' 314', 314),
|
||||
('314 ', 314),
|
||||
(' \t\t 314 \t\t ', 314),
|
||||
(`sys.maxint`, sys.maxint),
|
||||
(repr(sys.maxint), sys.maxint),
|
||||
(' 1x', ValueError),
|
||||
(' 1 ', 1),
|
||||
(' 1\02 ', ValueError),
|
||||
|
@ -480,7 +480,7 @@ class BuiltinTest(unittest.TestCase):
|
|||
except v:
|
||||
pass
|
||||
|
||||
s = `-1-sys.maxint`
|
||||
s = repr(-1-sys.maxint)
|
||||
self.assertEqual(int(s)+1, -sys.maxint)
|
||||
# should return long
|
||||
int(s[1:])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue