diff options
author | Marc Mueller <30130371+cdce8p@users.noreply.github.com> | 2023-08-10 15:55:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-10 15:55:47 (GMT) |
commit | 16dcce21768ba381996a88ac8c255bf1490b3680 (patch) | |
tree | b3a2fb78427046927e4180f2b21c81d2b2b29301 /Lib | |
parent | e4275f4df36a7cdd58cd4daa7d65b1947a2593d3 (diff) | |
download | cpython-16dcce21768ba381996a88ac8c255bf1490b3680.zip cpython-16dcce21768ba381996a88ac8c255bf1490b3680.tar.gz cpython-16dcce21768ba381996a88ac8c255bf1490b3680.tar.bz2 |
gh-107810: Improve DeprecationWarning for metaclasses with custom tp_new (GH-107834)
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_capi/test_misc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_capi/test_misc.py b/Lib/test/test_capi/test_misc.py index 001d37d..c812122 100644 --- a/Lib/test/test_capi/test_misc.py +++ b/Lib/test/test_capi/test_misc.py @@ -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)) |