diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2012-11-05 00:14:34 +0200 |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2012-11-05 00:14:34 +0200 |
commit | 944099ff16108e4e03f59b131298fc7c4da64baf (patch) | |
tree | 88adfb3950caaf915b5716f7b983d6fa6bac2d04 /Lib/test | |
parent | cfa9636404bb76cc98c5d5082457769c901b405f (diff) | |
parent | 570942e20816741e255fc89e707008d152133f88 (diff) | |
download | cpython-git-944099ff16108e4e03f59b131298fc7c4da64baf.tar.gz |
#5057: null merge with 3.3 (only add tests).
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_peepholer.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_peepholer.py b/Lib/test/test_peepholer.py index 1e782cfd6d..1cacdea569 100644 --- a/Lib/test/test_peepholer.py +++ b/Lib/test/test_peepholer.py @@ -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 |