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

Added skips for tests known to cause problems when running on Emscripten. 
These mostly relate to the limited stack depth on Emscripten.
This commit is contained in:
Hood Chatham 2024-12-05 01:26:25 +01:00 committed by GitHub
parent 2f1cee8477
commit 43634fc1fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 46 additions and 8 deletions

View file

@ -9,7 +9,7 @@ import unittest
from pathlib._abc import UnsupportedOperation, ParserBase, PurePathBase, PathBase
import posixpath
from test.support import is_wasi
from test.support import is_wasi, is_emscripten
from test.support.os_helper import TESTFN
@ -2298,6 +2298,7 @@ class DummyPathTest(DummyPurePathTest):
_check(path, "dirb/file*", False, ["dirB/fileB"])
@needs_symlinks
@unittest.skipIf(is_emscripten, "Hangs")
def test_glob_recurse_symlinks_common(self):
def _check(path, glob, expected):
actual = {path for path in path.glob(glob, recurse_symlinks=True)
@ -2393,6 +2394,7 @@ class DummyPathTest(DummyPurePathTest):
self.assertEqual(set(p.rglob("*\\")), { P(self.base, "dirC/dirD/") })
@needs_symlinks
@unittest.skipIf(is_emscripten, "Hangs")
def test_rglob_recurse_symlinks_common(self):
def _check(path, glob, expected):
actual = {path for path in path.rglob(glob, recurse_symlinks=True)