From d3d1dbfc1c781763802346648f639650c5280c80 Mon Sep 17 00:00:00 2001 From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Tue, 21 Jan 2025 11:44:38 +0800 Subject: [PATCH] Fix test_wasi --- Lib/test/test_sys.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index d2c45e61a80802..3b2b22dbf69fec 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -1620,10 +1620,11 @@ class C(object): pass def func(): return sys._getframe() x = func() + LLTRACE = 'c' if support.Py_DEBUG else '' if support.Py_GIL_DISABLED: - INTERPRETER_FRAME = '10PhccP' + INTERPRETER_FRAME = f'10Phc{LLTRACE}P' else: - INTERPRETER_FRAME = '9PhcccP' + INTERPRETER_FRAME = f'9Phc{LLTRACE}P' check(x, size('3PiccPP' + INTERPRETER_FRAME + 'P')) # function def func(): pass