mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 11:40:18 +01:00
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:
@@ -14,7 +14,7 @@ class TestFloat:
|
||||
|
||||
class TestComplex:
|
||||
def __complex__(self):
|
||||
return 1j + 10
|
||||
return complex(10, 1)
|
||||
|
||||
|
||||
for clas in TestFloat, TestComplex:
|
||||
|
||||
Reference in New Issue
Block a user