From 5c3c1c737e3f6b31f2a7fdaef219a5cd32e52f6d Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 9 Feb 2023 15:19:32 +1100 Subject: [PATCH] tests/float: Skip new complex tests if complex unavailable. These complex tests were recently added. Signed-off-by: Damien George --- tests/float/cmath_dunder.py | 2 +- tests/run-tests.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/float/cmath_dunder.py b/tests/float/cmath_dunder.py index 3526341510..909894d9f8 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: diff --git a/tests/run-tests.py b/tests/run-tests.py index e548059b1c..03269a9f1c 100755 --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -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")