Skip to content

Commit d3d1dbf

Browse files
Fix test_wasi
1 parent 8036199 commit d3d1dbf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Lib/test/test_sys.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1620,10 +1620,11 @@ class C(object): pass
16201620
def func():
16211621
return sys._getframe()
16221622
x = func()
1623+
LLTRACE = 'c' if support.Py_DEBUG else ''
16231624
if support.Py_GIL_DISABLED:
1624-
INTERPRETER_FRAME = '10PhccP'
1625+
INTERPRETER_FRAME = f'10Phc{LLTRACE}P'
16251626
else:
1626-
INTERPRETER_FRAME = '9PhcccP'
1627+
INTERPRETER_FRAME = f'9Phc{LLTRACE}P'
16271628
check(x, size('3PiccPP' + INTERPRETER_FRAME + 'P'))
16281629
# function
16291630
def func(): pass

0 commit comments

Comments
 (0)