8000 gh-127146: Emscripten: Skip segfaults in test suite by hoodmane · Pull Request #127151 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-127146: Emscripten: Skip segfaults in test suite #127151

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

Merged
merged 6 commits into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8000
Prev Previous commit
Next Next commit
Cleanup
  • Loading branch information
hoodmane committed Nov 30, 2024
commit 16ca04486e77fd76243bec008a1ac4a0e45026ec
1 change: 0 additions & 1 deletion Lib/test/list_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"""

import sys
import unittest
from functools import cmp_to_key

from test import seq_tests
Expand Down
6 changes: 3 additions & 3 deletions Lib/test/test_ast/test_ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ def next(self):
enum._test_simple_enum(_Precedence, ast._Precedence)

@support.cpython_only
@skip_emscripten_stack_overflow
@skip_emscripten_stack_overflow()
def test_ast_recursion_limit(self):
fail_depth = support.exceeds_recursion_limit()
crash_depth = 100_000
Expand Down Expand Up @@ -1662,15 +1662,15 @@ def test_level_as_none(self):
exec(code, ns)
self.assertIn('sleep', ns)

@skip_emscripten_stack_overflow
@skip_emscripten_stack_overflow()
def test_recursion_direct(self):
e = ast.UnaryOp(op=ast.Not(), lineno=0, col_offset=0, operand=ast.Constant(1))
e.operand = e
with self.assertRaises(RecursionError):
with support.infinite_recursion():
compile(ast.Expression(e), "<test>", "eval")

@skip_emscripten_stack_overflow
@skip_emscripten_stack_overflow()
def test_recursion_indirect(self):
e = ast.UnaryOp(op=ast.Not(), lineno=0, col_offset=0, operand=ast.Constant(1))
f = ast.UnaryOp(op=ast.Not(), lineno=0, col_offset=0, operand=ast.Constant(1))
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_json/test_recursion.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from test import support
from test.test_json import PyTest, CTest
import unittest


class JSONTestObject:
Expand Down
Loading
0