Author: Romain Guillebert <romain...@gmail.com> Branch: py3k Changeset: r51581:39eb4a258003 Date: 2012-01-21 15:53 +0100 http://bitbucket.org/pypy/pypy/changeset/39eb4a258003/
Log: Add a test for keyword-only arguments diff --git a/pypy/interpreter/astcompiler/test/test_compiler.py b/pypy/interpreter/astcompiler/test/test_compiler.py --- a/pypy/interpreter/astcompiler/test/test_compiler.py +++ b/pypy/interpreter/astcompiler/test/test_compiler.py @@ -810,6 +810,14 @@ """ yield self.st, func, "f()", (1, [2, 3, 4], 5) + def test_kwonlyargs_default_parameters(self): + """ This actually test an interpreter bug, but since we can't parse + py3k only code in the interpreter tests right now, it's there waiting + for this feature""" + func = """ def f(a, b, c=3, *, d=4): + return a, b, c, d + """ + yield self.st, func, "f(1, 2)", (1, 2, 3, 4) class AppTestCompiler: _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit