@@ -742,8 +742,6 @@ def test_instancecheck_and_subclasscheck(self):
742
742
self .assertTrue (issubclass (dict , x ))
743
743
self .assertFalse (issubclass (list , x ))
744
744
745
- # TODO: RUSTPYTHON
746
- @unittest .expectedFailure
747
745
def test_instancecheck_and_subclasscheck_order (self ):
748
746
T = typing .TypeVar ('T' )
749
747
@@ -790,17 +788,13 @@ def __subclasscheck__(cls, sub):
790
788
self .assertTrue (issubclass (int , x ))
791
789
self .assertRaises (ZeroDivisionError , issubclass , list , x )
792
790
793
- # TODO: RUSTPYTHON
794
- @unittest .expectedFailure
795
791
def test_or_type_operator_with_TypeVar (self ):
796
792
TV = typing .TypeVar ('T' )
797
793
assert TV | str == typing .Union [TV , str ]
798
794
assert str | TV == typing .Union [str , TV ]
799
795
self .assertIs ((int | TV )[int ], int )
800
796
self .assertIs ((TV | int )[int ], int )
801
797
802
- # TODO: RUSTPYTHON
803
- @unittest .expectedFailure
804
798
def test_union_args (self ):
805
799
def check (arg , expected ):
806
800
clear_typing_caches ()
@@ -893,16 +887,12 @@ def test_union_copy(self):
893
887
self .assertEqual (copied .__args__ , orig .__args__ )
894
888
self .assertEqual (copied .__parameters__ , orig .__parameters__ )
895
889
896
- # TODO: RUSTPYTHON
897
- @unittest .expectedFailure
898
890
def test_union_parameter_substitution_errors (self ):
899
891
T = typing .TypeVar ("T" )
900
892
x = int | T
901
893
with self .assertRaises (TypeError ):
902
894
x [int , str ]
903
895
904
- # TODO: RUSTPYTHON
905
- @unittest .expectedFailure
906
896
def test_or_type_operator_with_forward (self ):
907
897
T = typing .TypeVar ('T' )
908
898
ForwardAfter = T | 'Forward'
0 commit comments