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:
parent
9848b0685f
commit
5c3c1c737e
@ -14,7 +14,7 @@ class TestFloat:
|
||||
|
||||
class TestComplex:
|
||||
def __complex__(self):
|
||||
return 1j + 10
|
||||
return complex(10, 1)
|
||||
|
||||
|
||||
for clas in TestFloat, TestComplex:
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user