Skip to content

silence system utils tests in emscripten python.sh#133044

Merged
freakboy3742 merged 1 commit into
python:mainfrom
Lukasdoe:silence-emscripten-pythonsh-tests
Apr 27, 2025
Merged

silence system utils tests in emscripten python.sh#133044
freakboy3742 merged 1 commit into
python:mainfrom
Lukasdoe:silence-emscripten-pythonsh-tests

Conversation

@Lukasdoe

Copy link
Copy Markdown
Contributor

When running the generated python.sh an a system without grealpath (like Linux), which prints to stderr and pollutes the console with an unnecessary error message:

which: no grealpath in (<$PATH>)
Python 3.14.0a7+ 
Type "help", "copyright", "credits" or "license" for more information.
>>> 

where <$PATH> is the system path which may span multiple lines.

This PR redirects all output to /dev/null, since we're only interested in the return code anyways.

@bedevere-app

bedevere-app Bot commented Apr 27, 2025

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@freakboy3742 freakboy3742 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a good improvement to me - Thanks for the fix!

@freakboy3742 freakboy3742 merged commit 146b981 into python:main Apr 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants