fix issues with empty *args as inputs

This commit is contained in:
Dave Halter committed 2014-05-31 11:03:37 +02:00
1 parent f4a508ac53
commit 248cca2e5e
5 files changed
+22 -5

No files matched your search

+4
View File
@@ -29,6 +29,8 @@ def nested_twice(*args1):
nested_twice(2, 3)
#! 12 type-error-too-few-arguments
nested_twice(2)
#! 19 type-error-too-many-arguments
nested_twice(2, 3, 4)
# -----------------
# **kwargs
@@ -36,6 +38,8 @@ nested_twice(2)
def kwargs_test(**kwargs):
# TODO should not be here, but somewhere down there.
#! 14 type-error-multiple-values
return simple2(1, **kwargs)
kwargs_test(c=3, b=2)