summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2012-11-04 22:13:57 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2012-11-04 22:13:57 (GMT)
commit570942e20816741e255fc89e707008d152133f88 (patch)
tree8bad42cc3dee9abc85b8a262adabc348879ee38c /Lib
parentf7ed5d111bbe30b36b2629a87d9fcc291de4aafb (diff)
parent6c5f5210be9f68252b72d7b5e8dc2bde20d90c9d (diff)
downloadcpython-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.py3
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