tests/float: Skip new complex tests if complex unavailable.

These complex tests were recently added.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George 2023-02-09 15:19:32 +11:00
parent 9848b0685f
commit 5c3c1c737e
2 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,7 @@ class TestFloat:
class TestComplex: class TestComplex:
def __complex__(self): def __complex__(self):
return 1j + 10 return complex(10, 1)
for clas in TestFloat, TestComplex: for clas in TestFloat, TestComplex:

View File

@ -532,6 +532,7 @@ def run_tests(pyb, tests, args, result_dir, num_threads=1):
if not has_complex: if not has_complex:
skip_tests.add("float/complex1.py") skip_tests.add("float/complex1.py")
skip_tests.add("float/complex1_intbig.py") skip_tests.add("float/complex1_intbig.py")
skip_tests.add("float/complex_reverse_op.py")
skip_tests.add("float/complex_special_methods.py") skip_tests.add("float/complex_special_methods.py")
skip_tests.add("float/int_big_float.py") skip_tests.add("float/int_big_float.py")
skip_tests.add("float/true_value.py") skip_tests.add("float/true_value.py")