[pypy-commit] pypy py3.5: skip on pypy only

arigo pypy.commits at gmail.com
Wed Jan 18 07:15:15 EST 2017


Author: Armin Rigo <arigo at tunes.org>
Branch: py3.5
Changeset: r89658:ed5cf18954c8
Date: 2017-01-18 13:14 +0100
http://bitbucket.org/pypy/pypy/changeset/ed5cf18954c8/

Log:	skip on pypy only

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,7 +4,7 @@
 from io import StringIO
 import unittest
 from math import copysign
-from test.support import cpython_only
+from test.support import cpython_only, impl_detail
 
 from test.bytecode_helper import BytecodeTestCase
 
@@ -76,16 +76,19 @@
             self.assertNotInBytecode(code, 'UNPACK_TUPLE')
 
     def test_folding_of_tuples_of_constants(self):
-        # On CPython, "a,b,c=1,2,3" turns into "a,b,c=<constant (1,2,3)>"
-        # but on PyPy, it turns into "a=1;b=2;c=3".
         for line, elem in (
             ('a = 1,2,3', (1, 2, 3)),
             ('("a","b","c")', ('a', 'b', 'c')),
-            #('a,b,c = 1,2,3', (1, 2, 3)),
+            ('a,b,c = 1,2,3', (1, 2, 3)),
             ('(None, 1, None)', (None, 1, None)),
             ('((1, 2), 3, 4)', ((1, 2), 3, 4)),
             ):
             code = compile(line,'','single')
+            if line == 'a,b,c = 1,2,3' and impl_detail(pypy=True):
+                # On CPython, "a,b,c=1,2,3" turns into
+                # "a,b,c=<constant (1,2,3)>"
+                # but on PyPy, it turns into "a=1;b=2;c=3".
+                continue
             self.assertInBytecode(code, 'LOAD_CONST', elem)
             self.assertNotInBytecode(code, 'BUILD_TUPLE')
 


More information about the pypy-commit mailing list