[Python-checkins] cpython (merge 3.2 -> 3.3): #5057: null merge with 3.2 (only add tests).
ezio.melotti
python-checkins at python.org
Sun Nov 4 23:15:12 CET 2012
http://hg.python.org/cpython/rev/3b4f2f9272b4
changeset: 80251:3b4f2f9272b4
branch: 3.3
parent: 80246:5962f192a483
parent: 80249:56bc323288d1
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Mon Nov 05 00:13:57 2012 +0200
summary:
#5057: null merge with 3.2 (only add tests).
files:
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
--- a/Lib/test/test_peepholer.py
+++ b/Lib/test/test_peepholer.py
@@ -213,6 +213,9 @@
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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list