Skip to content

Commit 8a5e049

Browse files
Add coverage
1 parent d6c02b6 commit 8a5e049

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

tests/functional/u/unexpected_keyword_arg.py

+13-4
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,20 @@ def ambiguous_func5(arg1=input):
146146
print(arg1)
147147

148148

149+
def ambiguous_func6(arg1=42):
150+
print(arg1)
151+
152+
149153
# Two functions with same keyword argument but different defaults (names)
150-
func6 = ambiguous_func4 if unknown else ambiguous_func5
151-
func6()
154+
func3 = ambiguous_func4 if unknown else ambiguous_func5
155+
func3()
156+
157+
158+
# Two functions with same keyword argument but different defaults (constants)
159+
func4 = ambiguous_func3 if unknown else ambiguous_func6
160+
func4()
152161

153162

154163
# Two functions with same keyword argument but mixed defaults (names, constant)
155-
func7 = ambiguous_func3 if unknown else ambiguous_func5
156-
func7()
164+
func5 = ambiguous_func3 if unknown else ambiguous_func5
165+
func5()

0 commit comments

Comments
 (0)