Skip to content

Commit

Permalink
Unskip testTrailingCommaParsing test (#13484)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Aug 23, 2022
1 parent 0c0f071 commit a50c9ff
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions test-data/unit/check-basic.test
Original file line number Diff line number Diff line change
Expand Up @@ -300,12 +300,15 @@ main:4: error: Argument 1 to "f" of "A" has incompatible type "str"; expected "i
main:5: error: Incompatible return value type (got "int", expected "str")
main:6: error: Argument 1 to "f" of "A" has incompatible type "str"; expected "int"

[case testTrailingCommaParsing-skip]
[case testTrailingCommaParsing]
x = 1
x in 1,
if x in 1, :
pass
x in 1, # E: Unsupported right operand type for in ("int")
[builtins fixtures/tuple.pyi]

[case testTrailingCommaInIfParsing]
if x in 1, : pass
[out]
main:1: error: invalid syntax

[case testInitReturnTypeError]
class C:
Expand Down

0 comments on commit a50c9ff

Please sign in to comment.