diff options
author | Hood Chatham <roberthoodchatham@gmail.com> | 2024-12-05 01:26:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-05 08:26:25 +0800 |
commit | 43634fc1fcc88b35171aa79258f767ba6477f764 (patch) | |
tree | 14a53e287742fef89c8528a616e491eab2d097f5 /Lib/test/test_pathlib/test_pathlib_abc.py | |
parent | 2f1cee8477e22bfc36a704310e4c0f409357e7e9 (diff) | |
download | cpython-43634fc1fcc88b35171aa79258f767ba6477f764.tar.gz cpython-43634fc1fcc88b35171aa79258f767ba6477f764.zip |
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.
Diffstat (limited to 'Lib/test/test_pathlib/test_pathlib_abc.py')
-rw-r--r-- | Lib/test/test_pathlib/test_pathlib_abc.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_pathlib/test_pathlib_abc.py b/Lib/test/test_pathlib/test_pathlib_abc.py index af94ac03980..5fa2f550cef 100644 --- a/Lib/test/test_pathlib/test_pathlib_abc.py +++ b/Lib/test/test_pathlib/test_pathlib_abc.py @@ -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) |