diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index 57f7a3bebef778..d839893d2c657e 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -1621,9 +1621,9 @@ def func(): return sys._getframe() x = func() if support.Py_GIL_DISABLED: - INTERPRETER_FRAME = f'10PhcP' + INTERPRETER_FRAME = '10PhcP' else: - INTERPRETER_FRAME = f'9PhcP' + INTERPRETER_FRAME = '9PhcP' check(x, size('3PiccPP' + INTERPRETER_FRAME + 'P')) # function def func(): pass diff --git a/Python/ceval_macros.h b/Python/ceval_macros.h index 829a57361a4ee3..7d3597fe2f45f9 100644 --- a/Python/ceval_macros.h +++ b/Python/ceval_macros.h @@ -89,7 +89,7 @@ #if LLTRACE #define LLTRACE_RESUME_FRAME() \ do { \ - lltrace = maybe_lltrace_resume_frame(frame, GLOBALS()); \ + int lltrace = maybe_lltrace_resume_frame(frame, GLOBALS()); \ frame->lltrace = lltrace; if (lltrace < 0) { \ goto exit_unwind; \