[Python-checkins] cpython (merge 3.3 -> default): #5057: null merge with 3.3 (only add tests).

ezio.melotti python-checkins at python.org
Sun Nov 4 23:15:13 CET 2012


http://hg.python.org/cpython/rev/0790c16bb275
changeset:   80252:0790c16bb275
parent:      80247:5b205fff1972
parent:      80251:3b4f2f9272b4
user:        Ezio Melotti <ezio.melotti at gmail.com>
date:        Mon Nov 05 00:14:34 2012 +0200
summary:
  #5057: null merge with 3.3 (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