@@ -4231,6 +4231,8 @@ class MyChain(typing.ChainMap[str, T]): ...
4231
4231
self .assertIs (MyChain [int ]().__class__ , MyChain )
4232
4232
self .assertEqual (MyChain [int ]().__orig_class__ , MyChain [int ])
4233
4233
4234
+ # TODO: RUSTPYTHON
4235
+ @unittest .expectedFailure
4234
4236
def test_all_repr_eq_any (self ):
4235
4237
objs = (getattr (typing , el ) for el in typing .__all__ )
4236
4238
for obj in objs :
@@ -5014,6 +5016,8 @@ def cached(self): ...
5014
5016
5015
5017
5016
5018
class OverrideDecoratorTests (BaseTestCase ):
5019
+ # TODO: RUSTPYTHON
5020
+ @unittest .expectedFailure
5017
5021
def test_override (self ):
5018
5022
class Base :
5019
5023
def normal_method (self ): ...
@@ -5072,6 +5076,8 @@ def static_method_bad_order():
5072
5076
self .assertIs (False , hasattr (Base .static_method_good_order , "__override__" ))
5073
5077
self .assertIs (False , hasattr (Base .static_method_bad_order , "__override__" ))
5074
5078
5079
+ # TODO: RUSTPYTHON
5080
+ @unittest .expectedFailure
5075
5081
def test_property (self ):
5076
5082
class Base :
5077
5083
@property
@@ -5098,6 +5104,8 @@ def wrong(self) -> int:
5098
5104
self .assertFalse (hasattr (Child .wrong , "__override__" ))
5099
5105
self .assertFalse (hasattr (Child .wrong .fset , "__override__" ))
5100
5106
5107
+ # TODO: RUSTPYTHON
5108
+ @unittest .expectedFailure
5101
5109
def test_silent_failure (self ):
5102
5110
class CustomProp :
5103
5111
__slots__ = ('fget' ,)
@@ -5115,6 +5123,8 @@ def some(self):
5115
5123
self .assertEqual (WithOverride .some , 1 )
5116
5124
self .assertFalse (hasattr (WithOverride .some , "__override__" ))
5117
5125
5126
+ # TODO: RUSTPYTHON
5127
+ @unittest .expectedFailure
5118
5128
def test_multiple_decorators (self ):
5119
5129
def with_wraps (f ): # similar to `lru_cache` definition
5120
5130
@wraps (f )
@@ -5948,9 +5958,10 @@ class WeirdlyQuotedMovie(TypedDict):
5948
5958
title : Annotated ['Annotated[Required[str], "foobar"]' , "another level" ]
5949
5959
year : NotRequired ['Annotated[int, 2000]' ]
5950
5960
5951
- class HasForeignBaseClass (mod_generics_cache .A ):
5952
- some_xrepr : 'XRepr'
5953
- other_a : 'mod_generics_cache.A'
5961
+ # TODO: RUSTPYTHON
5962
+ # class HasForeignBaseClass(mod_generics_cache.A):
5963
+ # some_xrepr: 'XRepr'
5964
+ # other_a: 'mod_generics_cache.A'
5954
5965
5955
5966
async def g_with (am : typing .AsyncContextManager [int ]):
5956
5967
x : int
@@ -6927,6 +6938,8 @@ def test_contextmanager_type_params(self):
6927
6938
type gen_cm [T1 , T2 ] = typing .ContextManager [T1 , T2 ]
6928
6939
self .assertEqual (get_args (gen_cm .__value__ [int , None ]), (int , types .NoneType ))
6929
6940
6941
+ # TODO: RUSTPYTHON
6942
+ @unittest .expectedFailure
6930
6943
def test_async_contextmanager (self ):
6931
6944
class NotACM :
6932
6945
pass
@@ -6944,6 +6957,8 @@ def manager():
6944
6957
with self .assertRaises (TypeError ):
6945
6958
typing .AsyncContextManager [int , str , float ]
6946
6959
6960
+ # TODO: RUSTPYTHON
6961
+ @unittest .expectedFailure
6947
6962
def test_asynccontextmanager_type_params (self ):
6948
6963
cm1 = typing .AsyncContextManager [int ]
6949
6964
self .assertEqual (get_args (cm1 ), (int , bool | None ))
@@ -9814,6 +9829,8 @@ def test_all(self):
9814
9829
self .assertIn ('SupportsBytes' , a )
9815
9830
self .assertIn ('SupportsComplex' , a )
9816
9831
9832
+ # TODO: RUSTPYTHON
9833
+ @unittest .expectedFailure
9817
9834
def test_all_exported_names (self ):
9818
9835
# ensure all dynamically created objects are actualised
9819
9836
for name in typing .__all__ :
0 commit comments