cpython/Lib/test/test_capi
Miss Islington (bot) d57ee813eb
[3.12] gh-104614: Make Sure ob_type is Always Set Correctly by PyType_Ready() (gh-105122) (gh-105211)
When I added the relevant condition to type_ready_set_bases() in gh-103912, I had missed that the function also sets tp_base and ob_type (if necessary).  That led to problems for third-party static types.

We fix that here, by making those extra operations distinct and by adjusting the condition to be more specific.
(cherry picked from commit 1469393)

Co-authored-by: Eric Snow ericsnowcurrently@gmail.com
2023-06-01 23:06:38 +00:00
..
__init__.py
__main__.py
check_config.py gh-98627: Add an Optional Check for Extension Module Subinterpreter Compatibility (gh-99040) 2023-02-15 18:16:00 -07:00
test_codecs.py gh-99612: Fix PyUnicode_DecodeUTF8Stateful() for ASCII-only data (GH-99613) 2022-12-01 14:54:51 +02:00
test_eval_code_ex.py gh-101072: support default and kw default in PyEval_EvalCodeEx for 3.11+ (#101127) 2023-02-07 10:34:21 +01:00
test_exceptions.py [3.12] gh-105071: add PyUnstable_Exc_PrepReraiseStar to expose except* implementation in the unstable API (GH-105072) (#105095) 2023-05-30 16:50:23 +01:00
test_getargs.py gh-99240: Reset pointer to NULL when the pointed memory is freed in argument parsing (#99890) 2022-12-17 12:07:44 +05:30
test_immortal.py gh-84436: Add integration C API tests for immortal objects (gh-103962) 2023-05-03 00:05:30 +09:00
test_long.py GH-101291: Add low level, unstable API for pylong (GH-101685) 2023-05-21 14:45:48 +01:00
test_mem.py gh-93649: Split tracemalloc tests from _testcapimodule.c (#99551) 2022-12-17 09:53:36 +01:00
test_misc.py [3.12] gh-104614: Make Sure ob_type is Always Set Correctly by PyType_Ready() (gh-105122) (gh-105211) 2023-06-01 23:06:38 +00:00
test_structmembers.py gh-47146: Soft-deprecate structmember.h, expose its contents via Python.h (GH-99014) 2022-11-22 08:25:43 +01:00
test_unicode.py gh-98836: Extend PyUnicode_FromFormat() (GH-98838) 2023-05-22 00:32:39 +03:00
test_watchers.py gh-102381: don't call watcher callback with dead object (#102382) 2023-03-07 17:10:58 -07:00