mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
#11515: fix several typos. Patch by Piotr Kasprzyk.
This commit is contained in:
parent
f6db0bbbee
commit
42da663e6f
41 changed files with 1609 additions and 1608 deletions
|
|
@ -177,7 +177,7 @@ def test_unary_minus(self):
|
|||
self.assertEqual(eval("-" + all_one_bits), -18446744073709551615)
|
||||
else:
|
||||
self.fail("How many bits *does* this machine have???")
|
||||
# Verify treatment of contant folding on -(sys.maxsize+1)
|
||||
# Verify treatment of constant folding on -(sys.maxsize+1)
|
||||
# i.e. -2147483648 on 32 bit platforms. Should return int, not long.
|
||||
self.assertTrue(isinstance(eval("%s" % (-sys.maxsize - 1)), int))
|
||||
self.assertTrue(isinstance(eval("%s" % (-sys.maxsize - 2)), int))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue