diff --git a/Lib/test/test_types.py b/Lib/test/test_types.py index bcdd6d213e7a166..589bca59e18f07e 100644 --- a/Lib/test/test_types.py +++ b/Lib/test/test_types.py @@ -2402,6 +2402,9 @@ def test_static_types_inherited_slots(self): for slot, own in iter_slot_wrappers(cls): if cls is bool and slot in self.NUMERIC_METHODS: continue + if cls is imaginary and slot in ('__abs__', '__bool__', + '__pow__', '__rpow__'): + continue slots.append((cls, slot, own)) script += textwrap.dedent(f""" text = repr({cls.__name__}.{slot})