mirror of
https://github.com/python/cpython.git
synced 2025-10-31 21:51:50 +00:00
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
|
||
|---|---|---|
| .. | ||
| __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 | ||
| 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 | ||