-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
gh-90473: Decrease recursion limit and skip tests on WASI (GH-92803) #92803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
1f769f6
61c6f26
9d6a9e9
f05c396
3b6ca17
e67eab4
bd02948
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
Reduce recursion limit to 750. WASI has limited call stack. Mark tests that require mmap, os.pipe, or fail on musl libc.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2117,6 +2117,7 @@ def test_syntax_error_on_deeply_nested_blocks(self): | |
self._check_error(source, "too many statically nested blocks") | ||
|
||
@support.cpython_only | ||
@unittest.skipIf(support.is_wasi, "Exhausts WASI call stack") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there some way we could tweak the test to get the same coverage? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was able to make the test pass with a smaller parser CC @pablogsal |
||
def test_error_on_parser_stack_overflow(self): | ||
source = "-" * 100000 + "4" | ||
for mode in ["exec", "eval", "single"]: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Decrease default recursion limit on WASI to address limited call stack size. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.