Commit a563107f authored by Ezio Melotti's avatar Ezio Melotti

#5057: null merge with 3.2 (only add tests).

parents d29dec82 a6dc3d5b
...@@ -213,6 +213,9 @@ class TestTranforms(unittest.TestCase): ...@@ -213,6 +213,9 @@ class TestTranforms(unittest.TestCase):
asm = dis_single('"\u0061\uffff"[1]') asm = dis_single('"\u0061\uffff"[1]')
self.assertIn("('\\uffff')", asm) self.assertIn("('\\uffff')", asm)
self.assertNotIn('BINARY_SUBSCR', 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 # invalid code doesn't get optimized
# out of range # out of range
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment