mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
gh-127146: Emscripten clean up test suite (#127984)
Removed test skips that are no longer required as a result of Emscripten updates.
This commit is contained in:
parent
cfeaa992ba
commit
1183e4ce2f
12 changed files with 19 additions and 82 deletions
|
@ -1673,7 +1673,6 @@ class PathTest(test_pathlib_abc.DummyPathTest, PurePathTest):
|
|||
self.assertTrue(p.exists())
|
||||
self.assertEqual(p.stat().st_ctime, st_ctime_first)
|
||||
|
||||
@unittest.skipIf(is_emscripten, "FS root cannot be modified on Emscripten.")
|
||||
def test_mkdir_exist_ok_root(self):
|
||||
# Issue #25803: A drive root could raise PermissionError on Windows.
|
||||
self.cls('/').resolve().mkdir(exist_ok=True)
|
||||
|
@ -2039,7 +2038,6 @@ class PathTest(test_pathlib_abc.DummyPathTest, PurePathTest):
|
|||
self.assertEqual(expect, set(p.rglob(FakePath(pattern))))
|
||||
|
||||
@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)
|
||||
|
@ -2077,7 +2075,6 @@ class PathTest(test_pathlib_abc.DummyPathTest, PurePathTest):
|
|||
_check(p, "*/dirD/**/", ["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)
|
||||
|
@ -2484,9 +2481,7 @@ class PathWalkTest(test_pathlib_abc.DummyPathWalkTest):
|
|||
os.symlink(tmp5_path, broken_link3_path)
|
||||
self.sub2_tree[2].append('broken_link3')
|
||||
self.sub2_tree[2].sort()
|
||||
if not is_emscripten:
|
||||
# Emscripten fails with inaccessible directories.
|
||||
os.chmod(sub21_path, 0)
|
||||
os.chmod(sub21_path, 0)
|
||||
try:
|
||||
os.listdir(sub21_path)
|
||||
except PermissionError:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue