Skip to content

Commit a50c9ff

Browse files
authored
Unskip testTrailingCommaParsing test (#13484)
1 parent 0c0f071 commit a50c9ff

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

test-data/unit/check-basic.test

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,12 +300,15 @@ main:4: error: Argument 1 to "f" of "A" has incompatible type "str"; expected "i
300300
main:5: error: Incompatible return value type (got "int", expected "str")
301301
main:6: error: Argument 1 to "f" of "A" has incompatible type "str"; expected "int"
302302

303-
[case testTrailingCommaParsing-skip]
303+
[case testTrailingCommaParsing]
304304
x = 1
305-
x in 1,
306-
if x in 1, :
307-
pass
305+
x in 1, # E: Unsupported right operand type for in ("int")
306+
[builtins fixtures/tuple.pyi]
307+
308+
[case testTrailingCommaInIfParsing]
309+
if x in 1, : pass
308310
[out]
311+
main:1: error: invalid syntax
309312

310313
[case testInitReturnTypeError]
311314
class C:

0 commit comments

Comments
 (0)