mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
#11515: fix several typos. Patch by Piotr Kasprzyk.
This commit is contained in:
parent
1aa999c49e
commit
24b07bcba3
44 changed files with 51 additions and 50 deletions
|
@ -252,7 +252,7 @@ if 1:
|
|||
self.assertEqual(eval("-" + all_one_bits), -18446744073709551615L)
|
||||
else:
|
||||
self.fail("How many bits *does* this machine have???")
|
||||
# Verify treatment of contant folding on -(sys.maxint+1)
|
||||
# Verify treatment of constant folding on -(sys.maxint+1)
|
||||
# i.e. -2147483648 on 32 bit platforms. Should return int, not long.
|
||||
self.assertIsInstance(eval("%s" % (-sys.maxint - 1)), int)
|
||||
self.assertIsInstance(eval("%s" % (-sys.maxint - 2)), long)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue