Skip to content

Commit

Permalink
gh-117645: Skip test_dynamic global specialization on WASI
Browse files Browse the repository at this point in the history
Skip test_load_global_specialization_failure_keeps_oparg() of
test_dynamic on WASI build. The test uses too much stack memory.
  • Loading branch information
vstinner committed Apr 8, 2024
1 parent 24a2bd0 commit 5e69fe2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/test/test_dynamic.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import sys
import unittest

from test.support import is_wasi, Py_DEBUG, swap_item, swap_attr
from test.support import is_wasi, swap_item, swap_attr


class RebindBuiltinsTests(unittest.TestCase):
Expand Down Expand Up @@ -134,7 +134,7 @@ def test_eval_gives_lambda_custom_globals(self):

self.assertEqual(foo(), 7)

@unittest.skipIf(is_wasi and Py_DEBUG, "stack depth too shallow in pydebug WASI")
@unittest.skipIf(is_wasi, "stack depth too shallow in WASI")
def test_load_global_specialization_failure_keeps_oparg(self):
# https://github.com/python/cpython/issues/91625
class MyGlobals(dict):
Expand Down

0 comments on commit 5e69fe2

Please sign in to comment.