Skip to content

Commit 0e4d90e

Browse files
hoodmanelkollar
authored andcommitted
pythongh-127146: xfail more Emscripten stack overflows (python#134358)
Adds some additional test xfails for Emscripten stack overflows. Also corrects a test skip for test_io.
1 parent b42ee0a commit 0e4d90e

File tree

5 files changed

+6
-1
lines changed

5 files changed

+6
-1
lines changed

Lib/test/test_builtin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,6 +1120,7 @@ def test_filter_pickle(self):
11201120
self.check_iter_pickle(f1, list(f2), proto)
11211121

11221122
@support.skip_wasi_stack_overflow()
1123+
@support.skip_emscripten_stack_overflow()
11231124
@support.requires_resource('cpu')
11241125
def test_filter_dealloc(self):
11251126
# Tests recursive deallocation of nested filter objects using the

Lib/test/test_capi/test_misc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,10 +412,12 @@ def test_trashcan_subclass(self):
412412
L = MyList((L,))
413413

414414
@support.requires_resource('cpu')
415+
@support.skip_emscripten_stack_overflow()
415416
def test_trashcan_python_class1(self):
416417
self.do_test_trashcan_python_class(list)
417418

418419
@support.requires_resource('cpu')
420+
@support.skip_emscripten_stack_overflow()
419421
def test_trashcan_python_class2(self):
420422
from _testcapi import MyList
421423
self.do_test_trashcan_python_class(MyList)

Lib/test/test_descr.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4523,6 +4523,7 @@ class Oops(object):
45234523
del o
45244524

45254525
@support.skip_wasi_stack_overflow()
4526+
@support.skip_emscripten_stack_overflow()
45264527
@support.requires_resource('cpu')
45274528
def test_wrapper_segfault(self):
45284529
# SF 927248: deeply nested wrappers could cause stack overflow

Lib/test/test_exceptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,6 +1429,7 @@ def g():
14291429
self.assertIn("maximum recursion depth exceeded", str(exc))
14301430

14311431
@support.skip_wasi_stack_overflow()
1432+
@support.skip_emscripten_stack_overflow()
14321433
@cpython_only
14331434
@support.requires_resource('cpu')
14341435
def test_trashcan_recursion(self):

Lib/test/test_io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ def do_test(test, obj, abilities):
572572
for [test, abilities] in tests:
573573
with self.subTest(test):
574574
if test == pipe_writer and not threading_helper.can_start_thread:
575-
skipTest()
575+
self.skipTest("Need threads")
576576
with test() as obj:
577577
do_test(test, obj, abilities)
578578

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy