cpython/Lib/test/test_capi
Miss Islington (bot) 97d67e9dab
[3.12] gh-107915: Handle errors in C API functions PyErr_Set*() and PyErr_Format() (GH-107918) (#108134)
* gh-107915: Handle errors in C API functions PyErr_Set*() and PyErr_Format() (GH-107918)

Such C API functions as PyErr_SetString(), PyErr_Format(),
PyErr_SetFromErrnoWithFilename() and many others no longer crash or
ignore errors if it failed to format the error message or decode the
filename. Instead, they keep a corresponding error.
(cherry picked from commit 633ea217a8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>

* Define PY_SSIZE_T_CLEAN.

---------

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2023-08-20 23:07:24 +02:00
..
__init__.py
__main__.py
check_config.py [3.12] gh-104621: Check for Incompatible Extensions in import_find_extension() (gh-107184) (gh-107360) 2023-07-27 21:51:34 +00:00
test_abstract.py [3.12] gh-107178: Add the C API tests for the Abstract Objects Layer (GH-107179) (#107728) 2023-08-16 14:29:08 +02:00
test_codecs.py [3.12] gh-99593: Add tests for Unicode C API (part 3) (GH-104728) (GH-106595) 2023-07-10 20:58:58 +03:00
test_dict.py [3.12] gh-107178: Add the C API tests for the Abstract Objects Layer (GH-107179) (#107728) 2023-08-16 14:29:08 +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-107915: Handle errors in C API functions PyErr_Set*() and PyErr_Format() (GH-107918) (#108134) 2023-08-20 23:07:24 +02: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-107178: Add the C API tests for the Abstract Objects Layer (GH-107179) (#107728) 2023-08-16 14:29:08 +02: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 [3.12] gh-91051: fix type watcher test to be robust to existing watcher (GH-107989) (#108053) 2023-08-17 01:18:24 +02:00