@@ -2220,8 +2220,6 @@ class B(metaclass=UnhashableMeta): ...
2220
2220
with self .assertRaises (TypeError ):
2221
2221
hash (union3 )
2222
2222
2223
- # TODO: RUSTPYTHON
2224
- @unittest .expectedFailure
2225
2223
def test_repr (self ):
2226
2224
self .assertEqual (repr (Union ), 'typing.Union' )
2227
2225
u = Union [Employee , int ]
@@ -2389,8 +2387,6 @@ def test_tuple_instance_type_error(self):
2389
2387
isinstance ((0 , 0 ), Tuple [int , int ])
2390
2388
self .assertIsInstance ((0 , 0 ), Tuple )
2391
2389
2392
- # TODO: RUSTPYTHON
2393
- @unittest .expectedFailure
2394
2390
def test_repr (self ):
2395
2391
self .assertEqual (repr (Tuple ), 'typing.Tuple' )
2396
2392
self .assertEqual (repr (Tuple [()]), 'typing.Tuple[()]' )
@@ -2472,8 +2468,6 @@ def f():
2472
2468
with self .assertRaises (TypeError ):
2473
2469
isinstance (None , Callable [[], Any ])
2474
2470
2475
- # TODO: RUSTPYTHON
2476
- @unittest .expectedFailure
2477
2471
def test_repr (self ):
2478
2472
Callable = self .Callable
2479
2473
fullname = f'{ Callable .__module__ } .Callable'
@@ -2717,11 +2711,6 @@ def test_errors(self):
2717
2711
class TypingCallableTests (BaseCallableTests , BaseTestCase ):
2718
2712
Callable = typing .Callable
2719
2713
2720
- # TODO: RUSTPYTHON
2721
- @unittest .expectedFailure
2722
- def test_var_substitution (self ):
2723
- super ().test_var_substitution ()
2724
-
2725
2714
def test_consistency (self ):
2726
2715
# bpo-42195
2727
2716
# Testing collections.abc.Callable's consistency with typing.Callable
@@ -3554,8 +3543,6 @@ def __init__(self, x: T) -> None:
3554
3543
3555
3544
class GenericTests (BaseTestCase ):
3556
3545
3557
- # TODO: RUSTPYTHON
3558
- @unittest .expectedFailure
3559
3546
def test_basics (self ):
3560
3547
X = SimpleMapping [str , Any ]
3561
3548
self .assertEqual (X .__parameters__ , ())
@@ -3602,8 +3589,6 @@ class D(Generic[T]): pass
3602
3589
with self .assertRaises (TypeError ):
3603
3590
D [()]
3604
3591
3605
- # TODO: RUSTPYTHON
3606
- @unittest .expectedFailure
3607
3592
def test_generic_subclass_checks (self ):
3608
3593
for typ in [list [int ], List [int ],
3609
3594
tuple [int , str ], Tuple [int , str ],
@@ -4515,8 +4500,6 @@ class A(typing.Sized, list[int]): ...
4515
4500
(A , collections .abc .Sized , Generic , list , object ),
4516
4501
)
4517
4502
4518
- # TODO: RUSTPYTHON
4519
- @unittest .expectedFailure
4520
4503
def test_multiple_inheritance_with_genericalias_2 (self ):
4521
4504
T = TypeVar ("T" )
4522
4505
@@ -4840,8 +4823,6 @@ def test_basics(self):
4840
4823
with self .assertRaises (TypeError ):
4841
4824
Optional [Final [int ]]
4842
4825
4843
- # TODO: RUSTPYTHON
4844
- @unittest .expectedFailure
4845
4826
def test_repr (self ):
4846
4827
self .assertEqual (repr (Final ), 'typing.Final' )
4847
4828
cv = Final [int ]
@@ -6500,8 +6481,6 @@ def test_frozenset(self):
6500
6481
def test_dict (self ):
6501
6482
self .assertIsSubclass (dict , typing .Dict )
6502
6483
6503
- # TODO: RUSTPYTHON
6504
- @unittest .expectedFailure
6505
6484
def test_dict_subscribe (self ):
6506
6485
K = TypeVar ('K' )
6507
6486
V = TypeVar ('V' )
@@ -6706,8 +6685,6 @@ def test_no_async_generator_instantiation(self):
6706
6685
with self .assertRaises (TypeError ):
6707
6686
typing .AsyncGenerator [int , int ]()
6708
6687
6709
- # TODO: RUSTPYTHON
6710
- @unittest .expectedFailure
6711
6688
def test_subclassing (self ):
6712
6689
6713
6690
class MMA (typing .MutableMapping ):
@@ -7736,8 +7713,6 @@ class ChildWithInlineAndOptional(Untotal, Inline):
7736
7713
class Wrong (* bases ):
7737
7714
pass
7738
7715
7739
- # TODO: RUSTPYTHON
7740
- @unittest .expectedFailure
7741
7716
def test_is_typeddict (self ):
7742
7717
self .assertIs (is_typeddict (Point2D ), True )
7743
7718
self .assertIs (is_typeddict (Union [str , int ]), False )
@@ -9270,8 +9245,6 @@ def foo(arg) -> TypeGuard[int]: ...
9270
9245
with self .assertRaises (TypeError ):
9271
9246
TypeGuard [int , str ]
9272
9247
9273
- # TODO: RUSTPYTHON
9274
- @unittest .expectedFailure
9275
9248
def test_repr (self ):
9276
9249
self .assertEqual (repr (TypeGuard ), 'typing.TypeGuard' )
9277
9250
cv = TypeGuard [int ]
@@ -9322,8 +9295,6 @@ def foo(arg) -> TypeIs[int]: ...
9322
9295
with self .assertRaises (TypeError ):
9323
9296
TypeIs [int , str ]
9324
9297
9325
- # TODO: RUSTPYTHON
9326
- @unittest .expectedFailure
9327
9298
def test_repr (self ):
9328
9299
self .assertEqual (repr (TypeIs ), 'typing.TypeIs' )
9329
9300
cv = TypeIs [int ]
0 commit comments