@@ -207,6 +207,7 @@ def run_tests(pyb, tests, args, base_path="."):
207207 skip_set_type = False
208208 skip_async = False
209209 skip_const = False
210+ skip_revops = False
210211
211212 # Check if micropython.native is supported, and skip such tests if it's not
212213 native = run_feature_check (pyb , args , base_path , 'native_check.py' )
@@ -233,6 +234,11 @@ def run_tests(pyb, tests, args, base_path="."):
233234 if native == b'CRASH' :
234235 skip_const = True
235236
237+ # Check if __rOP__ special methods are supported, and skip such tests if it's not
238+ native = run_feature_check (pyb , args , base_path , 'reverse_ops.py' )
239+ if native == b'TypeError\n ' :
240+ skip_revops = True
241+
236242 # Check if emacs repl is supported, and skip such tests if it's not
237243 t = run_feature_check (pyb , args , base_path , 'repl_emacs_check.py' )
238244 if not 'True' in str (t , 'ascii' ):
@@ -360,6 +366,7 @@ def run_tests(pyb, tests, args, base_path="."):
360366 skip_it |= skip_set_type and is_set_type
361367 skip_it |= skip_async and is_async
362368 skip_it |= skip_const and is_const
369+ skip_it |= skip_revops and test_name .startswith ("class_reverse_op" )
363370
364371 if skip_it :
365372 print ("skip " , test_file )
0 commit comments