mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
#11515: Merge with 3.1.
This commit is contained in:
commit
4969f709cc
49 changed files with 58 additions and 58 deletions
|
@ -190,7 +190,7 @@ if 1:
|
|||
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.assertIsInstance(eval("%s" % (-sys.maxsize - 1)), int)
|
||||
self.assertIsInstance(eval("%s" % (-sys.maxsize - 2)), int)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue