From 6a441534584fe5cac079d262c59a5e6c73674bfa Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Wed, 31 Jul 2024 09:41:52 +0300 Subject: [PATCH] XXX fix Lib/test/test_types.py for imaginary --- Lib/test/test_types.py | 3 +++ 1 file changed, 3 insertions(+) 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})