Skip to content

silence system utils tests in emscripten python.sh #133044

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

Lukasdoe
Copy link
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
Copy link

bedevere-app bot commented Apr 27, 2025

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.

Copy link
Contributor

@freakboy3742 freakboy3742 left a comment

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
58 checks passed
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