diff options
| author | Paul Sokolovsky | 2017-09-10 17:05:31 +0300 |
|---|---|---|
| committer | Paul Sokolovsky | 2017-09-10 17:05:57 +0300 |
| commit | d6f9d64d97af245d042cbab8438dde25a29c504f (patch) | |
| tree | bb5c5b3c758c2f6909565aa7f2e425ca4b464e05 /tests/run-tests | |
| parent | eb84a830df62813f5af7f0144fc77444bf18f3a8 (diff) | |
tests/class_reverse_op: Test for reverse arith ops special methods.
This test should be run only if support for reverse ops is enabled, so
the corresponding feature_check is added to run-tests.
Diffstat (limited to 'tests/run-tests')
| -rwxr-xr-x | tests/run-tests | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/run-tests b/tests/run-tests index 14df1e986..c9f9efe77 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -207,6 +207,7 @@ def run_tests(pyb, tests, args, base_path="."): skip_set_type = False skip_async = False skip_const = False + skip_revops = False # Check if micropython.native is supported, and skip such tests if it's not native = run_feature_check(pyb, args, base_path, 'native_check.py') @@ -233,6 +234,11 @@ def run_tests(pyb, tests, args, base_path="."): if native == b'CRASH': skip_const = True + # Check if __rOP__ special methods are supported, and skip such tests if it's not + native = run_feature_check(pyb, args, base_path, 'reverse_ops.py') + if native == b'TypeError\n': + skip_revops = True + # Check if emacs repl is supported, and skip such tests if it's not t = run_feature_check(pyb, args, base_path, 'repl_emacs_check.py') if not 'True' in str(t, 'ascii'): @@ -360,6 +366,7 @@ def run_tests(pyb, tests, args, base_path="."): skip_it |= skip_set_type and is_set_type skip_it |= skip_async and is_async skip_it |= skip_const and is_const + skip_it |= skip_revops and test_name.startswith("class_reverse_op") if skip_it: print("skip ", test_file) |
