mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
gh-107810: Improve DeprecationWarning for metaclasses with custom tp_new (GH-107834)
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
This commit is contained in:
parent
e4275f4df3
commit
16dcce2176
3 changed files with 5 additions and 4 deletions
|
|
@ -611,7 +611,7 @@ class CAPITest(unittest.TestCase):
|
|||
|
||||
# Class creation from C
|
||||
with warnings_helper.check_warnings(
|
||||
('.*custom tp_new.*in Python 3.14.*', DeprecationWarning),
|
||||
('.* _testcapi.Subclass .* custom tp_new.*in Python 3.14.*', DeprecationWarning),
|
||||
):
|
||||
sub = _testcapi.make_type_with_base(Base)
|
||||
self.assertTrue(issubclass(sub, Base))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue