@@ -785,15 +785,13 @@ def f(a, b, c):
785785 c , b , a = a , b , c
786786 self .assertNotInBytecode (f , "SWAP" )
787787
788- @unittest .expectedFailure # TODO: RUSTPYTHON
789788 def test_static_swaps_match_mapping (self ):
790789 for a , b , c in product ("_a" , "_b" , "_c" ):
791790 pattern = f"{{'a': { a } , 'b': { b } , 'c': { c } }}"
792791 with self .subTest (pattern ):
793792 code = compile_pattern_with_fast_locals (pattern )
794793 self .assertNotInBytecode (code , "SWAP" )
795794
796- @unittest .expectedFailure # TODO: RUSTPYTHON
797795 def test_static_swaps_match_class (self ):
798796 forms = [
799797 "C({}, {}, {})" ,
@@ -808,7 +806,6 @@ def test_static_swaps_match_class(self):
808806 code = compile_pattern_with_fast_locals (pattern )
809807 self .assertNotInBytecode (code , "SWAP" )
810808
811- @unittest .expectedFailure # TODO: RUSTPYTHON
812809 def test_static_swaps_match_sequence (self ):
813810 swaps = {"*_, b, c" , "a, *_, c" , "a, b, *_" }
814811 forms = ["{}, {}, {}" , "{}, {}, *{}" , "{}, *{}, {}" , "*{}, {}, {}" ]
@@ -863,7 +860,6 @@ def f():
863860 y = x + x
864861 self .assertInBytecode (f , 'LOAD_FAST_BORROW_LOAD_FAST_BORROW' )
865862
866- @unittest .expectedFailure # TODO: RUSTPYTHON; RETURN_VALUE
867863 def test_load_fast_unknown_simple (self ):
868864 def f ():
869865 if condition ():
@@ -906,7 +902,6 @@ def f5(x=0):
906902 self .assertInBytecode (f5 , 'LOAD_FAST_BORROW' )
907903 self .assertNotInBytecode (f5 , 'LOAD_FAST_CHECK' )
908904
909- @unittest .expectedFailure # TODO: RUSTPYTHON; RETURN_VALUE
910905 def test_load_fast_known_because_already_loaded (self ):
911906 def f ():
912907 if condition ():
0 commit comments