Skip to content

Commit 9e181c4

Browse files
authored
gh-160873: Remove obsolete Emscripten workarounds (#162192)
Remove some more obsolete Emscripten workarounds.
1 parent 391c7d7 commit 9e181c4

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

‎Lib/test/test_pathlib/test_pathlib.py‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3065,12 +3065,7 @@ def test_glob_dotdot(self):
30653065
else:
30663066
# ".." segments are normalized first on Windows, so this path is stat()able.
30673067
self.assertEqual(set(p.glob("xyzzy/..")), { P(self.base, "xyzzy", "..") })
3068-
if sys.platform == "emscripten":
3069-
# Emscripten will return ELOOP if there are 49 or more ..'s.
3070-
# Can remove when https://github.com/emscripten-core/emscripten/pull/24591 is merged.
3071-
NDOTDOTS = 48
3072-
else:
3073-
NDOTDOTS = 50
3068+
NDOTDOTS = 50
30743069
self.assertEqual(set(p.glob("/".join([".."] * NDOTDOTS))), { P(self.base, *[".."] * NDOTDOTS)})
30753070

30763071
def test_glob_inaccessible(self):

‎Platforms/emscripten/config.site-wasm32-emscripten‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ ac_cv_func_posix_spawn=no
1919
ac_cv_func_posix_spawnp=no
2020
ac_cv_func_eventfd=no
2121
ac_cv_func_memfd_create=no
22-
ac_cv_func_prlimit=no
2322

2423
# The rest is based on pyodide
2524
# https://github.com/pyodide/pyodide/blob/main/cpython/pyconfig.undefs.h
@@ -45,8 +44,6 @@ ac_cv_func_seteuid=no
4544
ac_cv_func_setegid=no
4645
ac_cv_func_getresuid=no
4746
ac_cv_func_getresgid=no
48-
ac_cv_func_setresuid=no
49-
ac_cv_func_setresgid=no
5047

5148
# Syscalls not implemented in emscripten
5249
# [Errno 52] Function not implemented
@@ -89,7 +86,7 @@ ac_cv_func_setresuid=no
8986
ac_cv_func_setresgid=no
9087

9188
# Emscripten does not support hard links, always fails with errno 34
92-
# "Too many links". See emscripten_syscall_stubs.c
89+
# "Too many links".
9390
ac_cv_func_link=no
9491
ac_cv_func_linkat=no
9592

0 commit comments

Comments
 (0)