diff --git a/.circleci/config.yml b/.circleci/config.yml index 50839643a..f7c808546 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -161,7 +161,7 @@ jobs: - run: name: stack-size command: | - pytest -s benchmark/stack_usage.py | sed -n 's/## //pg' || true + pytest -s benchmark/stack_usage.py | sed -n 's/## //pg' test-emsdk: <<: *defaults diff --git a/benchmark/stack_usage.py b/benchmark/stack_usage.py index 1649763b9..c4f4d4f21 100644 --- a/benchmark/stack_usage.py +++ b/benchmark/stack_usage.py @@ -31,7 +31,7 @@ def print_info(): def test_stack_usage(selenium, print_info): res = selenium.run_js( """ - window.measure_available_js_stack_depth = () => { + self.measure_available_js_stack_depth = () => { let depth = 0; function recurse() { depth += 1; recurse(); } try { recurse(); } catch (err) { } @@ -44,7 +44,7 @@ def test_stack_usage(selenium, print_info): (recurse(0)-recurse(100))/100 `); let js_depth = measure_available_js_stack_depth(); - window.py_depth = [0]; + self.py_depth = [0]; try { pyodide.runPython(` import sys