Skip to content

Commit 4204807

Browse files
committed
Skip some known-bug tests in check-varargs
1 parent 14bb9a5 commit 4204807

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

mypy/test/testcheck.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
# List of files that contain test case descriptions.
2929
files = [
30-
'check-varargs.test',
3130
]
3231
fast_parser_files = [
3332
'check-basic.test',
@@ -73,6 +72,7 @@
7372
'check-tuples.test',
7473
'check-expressions.test',
7574
'check-generic-subtyping.test',
75+
'check-varargs.test',
7676
]
7777

7878
files.extend(fast_parser_files)

test-data/unit/check-varargs.test

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,15 +381,17 @@ main:4: error: Argument 2 to "f" has incompatible type *List[A]; expected "B"
381381
main:5: error: Argument 3 to "f" has incompatible type *List[A]; expected "B"
382382
main:6: error: Argument 1 to "f" has incompatible type *"Tuple[A, A, B]"; expected "B"
383383

384-
[case testVarArgsAfterKeywordArgInCall1]
384+
[case testVarArgsAfterKeywordArgInCall1-skip]
385+
# see: mypy issue #2729
385386
def f(x: int, y: str) -> None: pass
386387
f(x=1, *[2])
387388
[builtins fixtures/list.pyi]
388389
[out]
389390
main:2: error: "f" gets multiple values for keyword argument "x"
390391
main:2: error: Argument 2 to "f" has incompatible type *List[int]; expected "str"
391392

392-
[case testVarArgsAfterKeywordArgInCall2]
393+
[case testVarArgsAfterKeywordArgInCall2-skip]
394+
# see: mypy issue #2729
393395
def f(x: int, y: str) -> None: pass
394396
f(y='x', *[1])
395397
[builtins fixtures/list.pyi]

0 commit comments

Comments
 (0)