[pypy-commit] pypy py3.6: fix test_peepholer by undoing pypy-change
cfbolz
pypy.commits at gmail.com
Fri May 18 06:04:43 EDT 2018
Author: Carl Friedrich Bolz-Tereick <cfbolz at gmx.de>
Branch: py3.6
Changeset: r94614:b71f7b72b31d
Date: 2018-05-18 12:03 +0200
http://bitbucket.org/pypy/pypy/changeset/b71f7b72b31d/
Log: fix test_peepholer by undoing pypy-change
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
@@ -81,11 +81,10 @@
# 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')),
+ ('(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