Skip to content

Commit

Permalink
XXX fix Lib/test/test_types.py for imaginary
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev committed Jul 31, 2024
1 parent 4664e4e commit 6a44153
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Lib/test/test_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 6a44153

Please sign in to comment.