[pypy-commit] pypy py3.5: Restore this test to its CPython version. Then skip a test in the
arigo
pypy.commits at gmail.com
Wed Jan 18 07:11:18 EST 2017
Author: Armin Rigo <arigo at tunes.org>
Branch: py3.5
Changeset: r89657:946775085781
Date: 2017-01-18 13:10 +0100
http://bitbucket.org/pypy/pypy/changeset/946775085781/
Log: Restore this test to its CPython version. Then skip a test in the
middle (manually for now)
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
@@ -79,11 +79,11 @@
# 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))'),
- ('(None, 1, None)', '((None, 1, None))'),
- ('((1, 2), 3, 4)', '(((1, 2), 3, 4))'),
+ ('a = 1,2,3', (1, 2, 3)),
+ ('("a","b","c")', ('a', 'b', 'c')),
+ #('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')
self.assertInBytecode(code, 'LOAD_CONST', elem)
More information about the pypy-commit
mailing list