cpython/Lib/test/test_capi
Miss Islington (bot) 5c161cb832
[3.13] gh-122728: Fix SystemError in PyEval_GetLocals() (GH-122735) (#122757)
gh-122728: Fix SystemError in PyEval_GetLocals() (GH-122735)

Fix PyEval_GetLocals() to avoid SystemError ("bad argument to
internal function"). Don't redefine the 'ret' variable in the if
block.

Add an unit test on PyEval_GetLocals().
(cherry picked from commit 4767a6e31c)

Co-authored-by: Victor Stinner <vstinner@python.org>
2024-08-06 23:37:10 +02:00
..
__init__.py
__main__.py
check_config.py
test_abstract.py
test_bytearray.py
test_bytes.py
test_codecs.py
test_complex.py
test_dict.py
test_eval_code_ex.py
test_exceptions.py
test_float.py
test_getargs.py
test_hash.py
test_immortal.py
test_list.py
test_long.py
test_mem.py
test_misc.py [3.13] gh-122728: Fix SystemError in PyEval_GetLocals() (GH-122735) (#122757) 2024-08-06 23:37:10 +02:00
test_object.py
test_opt.py
test_pyatomic.py
test_run.py
test_set.py
test_structmembers.py
test_sys.py
test_time.py
test_unicode.py
test_watchers.py