Skip to content

Commit f76e174

Browse files
committed
Mark failing tests with xfail
1 parent b468db0 commit f76e174

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test-data/unit/check-isinstance.test

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2707,7 +2707,7 @@ if type(y) == int:
27072707
reveal_type(y) # N: Revealed type is "builtins.int"
27082708

27092709

2710-
[case testMultipleTypeEqualsCheck]
2710+
[case testMultipleTypeEqualsCheck-xfail]
27112711
from typing import Any
27122712

27132713
x: Any
@@ -2727,7 +2727,7 @@ y: Any
27272727
if type(y) is int:
27282728
reveal_type(y) # N: Revealed type is "builtins.int"
27292729

2730-
[case testTypeEqualsCheckUsingImplicitTypes]
2730+
[case testTypeEqualsCheckUsingImplicitTypes-xfail]
27312731
from typing import Any
27322732

27332733
x: str
@@ -2741,7 +2741,7 @@ if type(x) is type(z):
27412741
reveal_type(x) # N: Revealed type is "builtins.str"
27422742
reveal_type(z) # N: Revealed type is "builtins.str"
27432743

2744-
[case testTypeEqualsCheckUsingDifferentSpecializedTypes]
2744+
[case testTypeEqualsCheckUsingDifferentSpecializedTypes-xfail]
27452745
from collections import defaultdict
27462746

27472747
x: defaultdict
@@ -2752,7 +2752,7 @@ if type(x) is type(y) is type(z):
27522752
reveal_type(y) # N: Revealed type is "collections.defaultdict[Any, Any]"
27532753
reveal_type(z) # N: Revealed type is "collections.defaultdict[Any, Any]"
27542754

2755-
[case testUnionTypeEquality]
2755+
[case testUnionTypeEquality-xfail]
27562756
from typing import Any, reveal_type
27572757
# flags: --warn-unreachable
27582758

@@ -2762,7 +2762,7 @@ if type(x) == (int, str):
27622762

27632763
[builtins fixtures/tuple.pyi]
27642764

2765-
[case testTypeIntersectionWithConcreteTypes]
2765+
[case testTypeIntersectionWithConcreteTypes-xfail]
27662766
class X: x = 1
27672767
class Y: y = 1
27682768
class Z(X, Y): ...
@@ -2782,7 +2782,7 @@ if isinstance(x, type(y)) and isinstance(y, type(x)):
27822782

27832783
[builtins fixtures/isinstance.pyi]
27842784

2785-
[case testTypeEqualsCheckUsingIsNonOverlapping]
2785+
[case testTypeEqualsCheckUsingIsNonOverlapping-xfail]
27862786
# flags: --warn-unreachable
27872787
from typing import Union
27882788

@@ -2817,7 +2817,7 @@ if type(x) is int:
28172817
else:
28182818
reveal_type(x) # N: Revealed type is "builtins.int | builtins.str"
28192819

2820-
[case testTypeEqualsMultipleTypesShouldntNarrow]
2820+
[case testTypeEqualsMultipleTypesShouldntNarrow-xfail]
28212821
# flags: --warn-unreachable
28222822
# make sure we don't do any narrowing if there are multiple types being compared
28232823
# flags: --warn-unreachable

0 commit comments

Comments
 (0)