mirror of https://github.com/python/cpython
#5057: null merge with 3.3 (only add tests).
This commit is contained in:
commit
944099ff16
|
@ -213,6 +213,9 @@ class TestTranforms(unittest.TestCase):
|
|||
asm = dis_single('"\u0061\uffff"[1]')
|
||||
self.assertIn("('\\uffff')", asm)
|
||||
self.assertNotIn('BINARY_SUBSCR', asm)
|
||||
asm = dis_single('"\U00012345abcdef"[3]')
|
||||
self.assertIn("('c')", asm)
|
||||
self.assertNotIn('BINARY_SUBSCR', asm)
|
||||
|
||||
# invalid code doesn't get optimized
|
||||
# out of range
|
||||
|
|
Loading…
Reference in New Issue