Commit 80a5c4f3 authored by Stefan Behnel's avatar Stefan Behnel

test fixes after GetStarArgs() changes

parent b6d79eae
__doc__ = """ __doc__ = """
>>> b(1,2,3)
>>> b(1,2,3,4)
Traceback (most recent call last):
TypeError: function takes exactly 3 arguments (4 given)
>>> c(1,2)
>>> c(1,2,3) >>> c(1,2,3)
>>> c(1,2,3,4) >>> c(1,2,3,4)
Traceback (most recent call last): Traceback (most recent call last):
TypeError: function takes exactly 3 arguments (4 given) TypeError: function takes at most 3 arguments (4 given)
>>> d(1,2) >>> d(1,2)
>>> d(1,2, c=1) >>> d(1,2, c=1)
...@@ -63,7 +69,10 @@ __doc__ = """ ...@@ -63,7 +69,10 @@ __doc__ = """
TypeError: required keyword argument 'c' is missing TypeError: required keyword argument 'c' is missing
""" """
def c(a, b, c): def b(a, b, c):
z = 22
def c(a, b, c=1):
z = 33 z = 33
def d(a, b, *, c = 88): def d(a, b, *, c = 88):
......
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