https://github.com/python/cpython/commit/9e181c4267aa761ad96d18765037d4360df371af
commit: 9e181c4267aa761ad96d18765037d4360df371af
branch: main
author: Pengyu <[email protected]>
committer: freakboy3742 <[email protected]>
date: 2026-11-19T00:33:54Z
summary:
gh-160873: Remove obsolete Emscripten workarounds (#162192)
Remove some more obsolete Emscripten workarounds.
files:
M Lib/test/test_pathlib/test_pathlib.py
M Platforms/emscripten/config.site-wasm32-emscripten
diff --git a/Lib/test/test_pathlib/test_pathlib.py
b/Lib/test/test_pathlib/test_pathlib.py
index 10e3ad6d92daec8..8013b0df26ec81c 100644
--- a/Lib/test/test_pathlib/test_pathlib.py
+++ b/Lib/test/test_pathlib/test_pathlib.py
@@ -3065,12 +3065,7 @@ def test_glob_dotdot(self):
else:
# ".." segments are normalized first on Windows, so this path is
stat()able.
self.assertEqual(set(p.glob("xyzzy/..")), { P(self.base, "xyzzy",
"..") })
- if sys.platform == "emscripten":
- # Emscripten will return ELOOP if there are 49 or more ..'s.
- # Can remove when
https://github.com/emscripten-core/emscripten/pull/24591 is merged.
- NDOTDOTS = 48
- else:
- NDOTDOTS = 50
+ NDOTDOTS = 50
self.assertEqual(set(p.glob("/".join([".."] * NDOTDOTS))), {
P(self.base, *[".."] * NDOTDOTS)})
def test_glob_inaccessible(self):
diff --git a/Platforms/emscripten/config.site-wasm32-emscripten
b/Platforms/emscripten/config.site-wasm32-emscripten
index 3c9a1c2c2568b0e..62640cc772d7e9b 100644
--- a/Platforms/emscripten/config.site-wasm32-emscripten
+++ b/Platforms/emscripten/config.site-wasm32-emscripten
@@ -19,7 +19,6 @@ ac_cv_func_posix_spawn=no
ac_cv_func_posix_spawnp=no
ac_cv_func_eventfd=no
ac_cv_func_memfd_create=no
-ac_cv_func_prlimit=no
# The rest is based on pyodide
# https://github.com/pyodide/pyodide/blob/main/cpython/pyconfig.undefs.h
@@ -45,8 +44,6 @@ ac_cv_func_seteuid=no
ac_cv_func_setegid=no
ac_cv_func_getresuid=no
ac_cv_func_getresgid=no
-ac_cv_func_setresuid=no
-ac_cv_func_setresgid=no
# Syscalls not implemented in emscripten
# [Errno 52] Function not implemented
@@ -89,7 +86,7 @@ ac_cv_func_setresuid=no
ac_cv_func_setresgid=no
# Emscripten does not support hard links, always fails with errno 34
-# "Too many links". See emscripten_syscall_stubs.c
+# "Too many links".
ac_cv_func_link=no
ac_cv_func_linkat=no
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]