Commit 13e8dd85 authored by Stefan Behnel's avatar Stefan Behnel

extended test case

parent bbf54287
...@@ -89,6 +89,17 @@ __doc__ = u""" ...@@ -89,6 +89,17 @@ __doc__ = u"""
>>> l(1,2, d=1) >>> l(1,2, d=1)
Traceback (most recent call last): Traceback (most recent call last):
TypeError: l() takes exactly 0 positional arguments (2 given) TypeError: l() takes exactly 0 positional arguments (2 given)
>>> m(1, b=2)
>>> m(a=1, b=2)
>>> m(a=1, b=2, c=1)
>>> l(1,2,3)
Traceback (most recent call last):
TypeError: l() takes exactly 0 positional arguments (3 given)
>>> l(1,2, d=1)
Traceback (most recent call last):
TypeError: l() takes exactly 0 positional arguments (2 given)
""" """
def b(a, b, c): def b(a, b, c):
...@@ -117,3 +128,6 @@ def k(a, b, c=1, *args, d = 42, e = 17, f, **kwds): ...@@ -117,3 +128,6 @@ def k(a, b, c=1, *args, d = 42, e = 17, f, **kwds):
def l(*, a, b, c = 88): def l(*, a, b, c = 88):
pass pass
def m(a, *, b, c = 88):
pass
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment