@@ -523,6 +523,8 @@ def test_compile_async_generator(self):
523523 exec (co , glob )
524524 self .assertEqual (type (glob ['ticker' ]()), AsyncGeneratorType )
525525
526+ # TODO: RUSTPYTHON
527+ @unittest .expectedFailure
526528 def test_delattr (self ):
527529 sys .spam = 1
528530 delattr (sys , 'spam' )
@@ -755,6 +757,8 @@ def test_exec_globals(self):
755757 self .assertRaises (TypeError ,
756758 exec , code , {'__builtins__' : 123 })
757759
760+ # TODO: RUSTPYTHON
761+ @unittest .expectedFailure
758762 def test_exec_globals_frozen (self ):
759763 class frozendict_error (Exception ):
760764 pass
@@ -787,6 +791,8 @@ def __setitem__(self, key, value):
787791 self .assertRaises (frozendict_error ,
788792 exec , code , namespace )
789793
794+ # TODO: RUSTPYTHON
795+ @unittest .expectedFailure
790796 def test_exec_globals_error_on_get (self ):
791797 # custom `globals` or `builtins` can raise errors on item access
792798 class setonlyerror (Exception ):
@@ -806,6 +812,8 @@ def __getitem__(self, key):
806812 self .assertRaises (setonlyerror , exec , code ,
807813 {'__builtins__' : setonlydict ({'superglobal' : 1 })})
808814
815+ # TODO: RUSTPYTHON
816+ @unittest .expectedFailure
809817 def test_exec_globals_dict_subclass (self ):
810818 class customdict (dict ): # this one should not do anything fancy
811819 pass
@@ -828,6 +836,8 @@ def test_exec_redirected(self):
828836 finally :
829837 sys .stdout = savestdout
830838
839+ # TODO: RUSTPYTHON
840+ @unittest .expectedFailure
831841 def test_exec_closure (self ):
832842 def function_without_closures ():
833843 return 3 * 5
@@ -937,6 +947,8 @@ def test_filter_pickle(self):
937947 f2 = filter (filter_char , "abcdeabcde" )
938948 self .check_iter_pickle (f1 , list (f2 ), proto )
939949
950+ # TODO: RUSTPYTHON
951+ @unittest .expectedFailure
940952 def test_getattr (self ):
941953 self .assertTrue (getattr (sys , 'stdout' ) is sys .stdout )
942954 self .assertRaises (TypeError , getattr )
@@ -948,6 +960,8 @@ def test_getattr(self):
948960 # unicode surrogates are not encodable to the default encoding (utf8)
949961 self .assertRaises (AttributeError , getattr , 1 , "\uDAD1 \uD51E " )
950962
963+ # TODO: RUSTPYTHON
964+ @unittest .expectedFailure
951965 def test_hasattr (self ):
952966 self .assertTrue (hasattr (sys , 'stdout' ))
953967 self .assertRaises (TypeError , hasattr )
@@ -1599,6 +1613,8 @@ def test_bug_27936(self):
15991613 self .assertEqual (round (x , None ), round (x ))
16001614 self .assertEqual (type (round (x , None )), type (round (x )))
16011615
1616+ # TODO: RUSTPYTHON
1617+ @unittest .expectedFailure
16021618 def test_setattr (self ):
16031619 setattr (sys , 'spam' , 1 )
16041620 self .assertEqual (sys .spam , 1 )
@@ -2393,6 +2409,8 @@ def test_type_nokwargs(self):
23932409 with self .assertRaises (TypeError ):
23942410 type ('a' , (), dict = {})
23952411
2412+ # TODO: RUSTPYTHON
2413+ @unittest .expectedFailure
23962414 def test_type_name (self ):
23972415 for name in 'A' , '\xc4 ' , '\U0001f40d ' , 'B.A' , '42' , '' :
23982416 with self .subTest (name = name ):
0 commit comments