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

These complex tests were recently added.

Signed-off-by: Damien George <damien@micropython.org>
pull/10702/head^2
Damien George 2023-02-09 15:19:32 +11:00
rodzic 9848b0685f
commit 5c3c1c737e
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

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

Wyświetl plik

@ -532,6 +532,7 @@ def run_tests(pyb, tests, args, result_dir, num_threads=1):
if not has_complex:
skip_tests.add("float/complex1.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/int_big_float.py")
skip_tests.add("float/true_value.py")