Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove method
  • Loading branch information
sobolevn committed Jun 1, 2024
commit 93c06dfcf67bb1d160683f1c20c50af74b412a93
4 changes: 1 addition & 3 deletions Lib/test/test_capi/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,9 +778,7 @@ def test_pytype_fromspec_with_repeated_slots(self):
_testcapi.create_type_from_repeated_slots(variant)

def test_immutable_type_with_mutable_base(self):
class MutableBase:
def meth(self):
return 'original'
class MutableBase: ...

with self.assertRaisesRegex(TypeError, 'Creating immutable type'):
_testcapi.make_immutable_type_with_base(MutableBase)
Expand Down