Skip to content

Commit 49fc8fd

Browse files
committed
Reenable test_dynamic on WASI release build
1 parent 0d48e6d commit 49fc8fd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Lib/test/test_dynamic.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import sys
55
import unittest
66

7-
from test.support import is_wasi, swap_item, swap_attr
7+
from test.support import is_wasi, swap_item, swap_attr, Py_DEBUG
88

99

1010
class RebindBuiltinsTests(unittest.TestCase):
@@ -134,7 +134,8 @@ def test_eval_gives_lambda_custom_globals(self):
134134

135135
self.assertEqual(foo(), 7)
136136

137-
@unittest.skipIf(is_wasi, "stack depth too shallow in WASI")
137+
@unittest.skipIf(is_wasi and Py_DEBUG,
138+
"stack depth too shallow in WASI debug build")
138139
def test_load_global_specialization_failure_keeps_oparg(self):
139140
# https://github.com/python/cpython/issues/91625
140141
class MyGlobals(dict):

0 commit comments

Comments
 (0)