Skip to content

Commit

Permalink
tests/float: Skip new complex tests if complex unavailable.
Browse files Browse the repository at this point in the history
These complex tests were recently added.

Signed-off-by: Damien George <damien@micropython.org>
  • Loading branch information
dpgeorge committed Feb 9, 2023
1 parent 9848b06 commit 5c3c1c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/float/cmath_dunder.py
Expand Up @@ -14,7 +14,7 @@ def __float__(self):

class TestComplex:
def __complex__(self):
return 1j + 10
return complex(10, 1)


for clas in TestFloat, TestComplex:
Expand Down
1 change: 1 addition & 0 deletions tests/run-tests.py
Expand Up @@ -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")
Expand Down

0 comments on commit 5c3c1c7

Please sign in to comment.