https://github.com/python/cpython/commit/146b981f764cc8975910066096dc2f6cb33beec6
commit: 146b981f764cc8975910066096dc2f6cb33beec6
branch: main
author: Lukas <[email protected]>
committer: freakboy3742 <[email protected]>
date: 2025-04-28T06:13:02+08:00
summary:
Silence system utils tests in emscripten python.sh (#133044)
Ensure that checks for system functions don't leak onto stdout on failure.
files:
M Tools/wasm/emscripten/__main__.py
diff --git a/Tools/wasm/emscripten/__main__.py
b/Tools/wasm/emscripten/__main__.py
index 4a53e0bd1bee1b..849bd5de44eb7b 100644
--- a/Tools/wasm/emscripten/__main__.py
+++ b/Tools/wasm/emscripten/__main__.py
@@ -248,10 +248,10 @@ def configure_emscripten_python(context, working_dir):
# Macs come with FreeBSD coreutils which doesn't have the -s option
# so feature detect and work around it.
- if which grealpath > /dev/null; then
+ if which grealpath > /dev/null 2>&1; then
# It has brew installed gnu core utils, use that
REALPATH="grealpath -s"
- elif which realpath > /dev/null && realpath --version > /dev/null
2> /dev/null && realpath --version | grep GNU > /dev/null; then
+ elif which realpath > /dev/null 2>&1 && realpath --version >
/dev/null 2>&1 && realpath --version | grep GNU > /dev/null 2>&1; then
# realpath points to GNU realpath so use it.
REALPATH="realpath -s"
else
_______________________________________________
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]