[pypy-commit] pypy py3k: Add a failing test for extended attribute unpacking

rguillebert noreply at buildbot.pypy.org
Mon Jan 16 14:05:02 CET 2012


Author: Romain Guillebert <romain.py at gmail.com>
Branch: py3k
Changeset: r51338:5500c9127aab
Date: 2012-01-16 14:04 +0100
http://bitbucket.org/pypy/pypy/changeset/5500c9127aab/

Log:	Add a failing test for extended attribute unpacking

diff --git a/pypy/interpreter/pyparser/test/test_pyparse.py b/pypy/interpreter/pyparser/test/test_pyparse.py
--- a/pypy/interpreter/pyparser/test/test_pyparse.py
+++ b/pypy/interpreter/pyparser/test/test_pyparse.py
@@ -153,3 +153,6 @@
         self.parse('0b1101')
         self.parse('0b0l')
         py.test.raises(SyntaxError, self.parse, "0b112")
+
+    def test_new_extended_unpacking(self):
+        self.parse('(a, *rest, b) = 1, 2, 3, 4, 5')


More information about the pypy-commit mailing list