Skip to content

gh-150046: Fix test_add_python_opts to ignore PYTHON* vars#150089

Open
pradyunsg wants to merge 5 commits into
python:mainfrom
pradyunsg:fixup-test_add_python_opts
Open

gh-150046: Fix test_add_python_opts to ignore PYTHON* vars#150089
pradyunsg wants to merge 5 commits into
python:mainfrom
pradyunsg:fixup-test_add_python_opts

Conversation

@pradyunsg
Copy link
Copy Markdown
Member

@pradyunsg pradyunsg commented May 19, 2026

Avoid the runtime environment from affecting the tests' behaviours, which checks the warning filters. The filters can be affected by various PYTHON* environment variables.

Avoid the runtime environment from affecting the tests' behaviours,
which notably checks the warning filters which can be controlled by
various environment variables.
@pradyunsg pradyunsg requested a review from vstinner May 19, 2026 15:04
@pradyunsg pradyunsg added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels May 19, 2026
@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label May 19, 2026
Comment thread Misc/NEWS.d/next/Tests/2026-05-19-08-10-20.gh-issue-150046.MndDD8.rst Outdated
Comment thread Lib/test/test_regrtest.py Outdated
@pradyunsg pradyunsg changed the title gh-150046: Pass -E to subprocesses from check_add_python_opts gh-150046: Fix test_add_python_opts to ignore PYTHON* vars May 21, 2026
@pradyunsg
Copy link
Copy Markdown
Member Author

Sorry that took a while -- turns out, doing an 8 hour timezone jump is a great way to be knocked out. 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants