Skip to content

Commit 6a44153

Browse files
committed
XXX fix Lib/test/test_types.py for imaginary
1 parent 4664e4e commit 6a44153

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_types.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2402,6 +2402,9 @@ def test_static_types_inherited_slots(self):
24022402
for slot, own in iter_slot_wrappers(cls):
24032403
if cls is bool and slot in self.NUMERIC_METHODS:
24042404
continue
2405+
if cls is imaginary and slot in ('__abs__', '__bool__',
2406+
'__pow__', '__rpow__'):
2407+
continue
24052408
slots.append((cls, slot, own))
24062409
script += textwrap.dedent(f"""
24072410
text = repr({cls.__name__}.{slot})

0 commit comments

Comments
 (0)