summaryrefslogtreecommitdiff
path: root/tests/float
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2023-02-09 15:19:32 +1100
committerDamien George <damien@micropython.org>2023-02-09 15:20:00 +1100
commit5c3c1c737e3f6b31f2a7fdaef219a5cd32e52f6d (patch)
tree394b71817cc53fae6e4eda4f5e8be0c051eda4ba /tests/float
parent9848b0685f3f24ec9fa7f179a1575b8a76565073 (diff)
tests/float: Skip new complex tests if complex unavailable.
These complex tests were recently added. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/float')
-rw-r--r--tests/float/cmath_dunder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/float/cmath_dunder.py b/tests/float/cmath_dunder.py
index 352634151..909894d9f 100644
--- a/tests/float/cmath_dunder.py
+++ b/tests/float/cmath_dunder.py
@@ -14,7 +14,7 @@ class TestFloat:
class TestComplex:
def __complex__(self):
- return 1j + 10
+ return complex(10, 1)
for clas in TestFloat, TestComplex: