[pypy-commit] pypy py3k: skip a test checking a peephole optimization simplifying constant string subscripts

plan_rich pypy.commits at gmail.com
Wed Oct 5 12:01:37 EDT 2016


Author: Richard Plangger <planrichi at gmail.com>
Branch: py3k
Changeset: r87595:36a6a63d2306
Date: 2016-10-05 18:00 +0200
http://bitbucket.org/pypy/pypy/changeset/36a6a63d2306/

Log:	skip a test checking a peephole optimization simplifying constant
	string subscripts

diff --git a/lib-python/3/test/test_peepholer.py b/lib-python/3/test/test_peepholer.py
--- a/lib-python/3/test/test_peepholer.py
+++ b/lib-python/3/test/test_peepholer.py
@@ -4,6 +4,7 @@
 from io import StringIO
 import unittest
 from math import copysign
+from test.support import cpython_only
 
 def disassemble(func):
     f = StringIO()
@@ -211,6 +212,7 @@
         asm = dis_single('a="x"*1000')
         self.assertIn('(1000)', asm)
 
+    @cpython_only # we currently not bother to implement that
     def test_binary_subscr_on_unicode(self):
         # valid code get optimized
         asm = dis_single('"foo"[0]')


More information about the pypy-commit mailing list