@@ -2981,8 +2981,6 @@ class HasCallProtocol(Protocol):
2981
2981
2982
2982
2983
2983
class ProtocolTests (BaseTestCase ):
2984
- # TODO: RUSTPYTHON
2985
- @unittest .expectedFailure
2986
2984
def test_basic_protocol (self ):
2987
2985
@runtime_checkable
2988
2986
class P (Protocol ):
@@ -3071,8 +3069,6 @@ def f():
3071
3069
for thing in (object (), 1 , (), typing , f ):
3072
3070
self .assertIsInstance (thing , Empty )
3073
3071
3074
- # TODO: RUSTPYTHON
3075
- @unittest .expectedFailure
3076
3072
def test_function_implements_protocol (self ):
3077
3073
def f ():
3078
3074
pass
@@ -3163,8 +3159,6 @@ class C(P): pass
3163
3159
self .assertIsInstance (c , C )
3164
3160
self .assertEqual (c .x , 1 )
3165
3161
3166
- # TODO: RUSTPYTHON
3167
- @unittest .expectedFailure
3168
3162
def test_cannot_instantiate_abstract (self ):
3169
3163
@runtime_checkable
3170
3164
class P (Protocol ):
@@ -3183,8 +3177,6 @@ def ameth(self) -> int:
3183
3177
B ()
3184
3178
self .assertIsInstance (C (), P )
3185
3179
3186
- # TODO: RUSTPYTHON
3187
- @unittest .expectedFailure
3188
3180
def test_subprotocols_extending (self ):
3189
3181
class P1 (Protocol ):
3190
3182
def meth1 (self ):
@@ -3217,8 +3209,6 @@ def meth2(self):
3217
3209
self .assertIsInstance (C (), P2 )
3218
3210
self .assertIsSubclass (C , P2 )
3219
3211
3220
- # TODO: RUSTPYTHON
3221
- @unittest .expectedFailure
3222
3212
def test_subprotocols_merging (self ):
3223
3213
class P1 (Protocol ):
3224
3214
def meth1 (self ):
@@ -3316,8 +3306,6 @@ def x(self): ...
3316
3306
issubclass (1 , BadPG )
3317
3307
3318
3308
3319
- # TODO: RUSTPYTHON
3320
- @unittest .expectedFailure
3321
3309
def test_implicit_issubclass_between_two_protocols (self ):
3322
3310
@runtime_checkable
3323
3311
class CallableMembersProto (Protocol ):
0 commit comments