diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2012-11-04 22:13:57 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2012-11-04 22:13:57 (GMT) |
commit | 570942e20816741e255fc89e707008d152133f88 (patch) | |
tree | 8bad42cc3dee9abc85b8a262adabc348879ee38c /Lib | |
parent | f7ed5d111bbe30b36b2629a87d9fcc291de4aafb (diff) | |
parent | 6c5f5210be9f68252b72d7b5e8dc2bde20d90c9d (diff) | |
download | cpython-570942e20816741e255fc89e707008d152133f88.zip cpython-570942e20816741e255fc89e707008d152133f88.tar.gz cpython-570942e20816741e255fc89e707008d152133f88.tar.bz2 |
#5057: null merge with 3.2 (only add tests).
Diffstat (limited to 'Lib')
-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 1e782cf..1cacdea 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 |