mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
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:
parent
2f1cee8477
commit
43634fc1fc
21 changed files with 46 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue