Skip to content

Conversation

@hroncok
Copy link
Contributor

@hroncok hroncok commented Oct 16, 2025

The test did not expect it could be run with e.g. CFLAGS set to a custom value.

Fixes #140210

… ignore environment variables

The test did not expect it could be run with e.g. CFLAGS set to a custom value.

Fixes python#140210
Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM.

I confirm that I can easily reproduce the issue by setting CFLAGS environment variable:

$ CFLAGS="xxx" ./python -m test test_sysconfig -m test_parse_makefile_renamed_vars -v
...
-  'var1': 'xxx',
?           ^^^

+  'var1': '-Wall',
?           ^^^^^
...

With this PR, I can no longer reproduce the issue.

cc @serhiy-storchaka

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

Labels

awaiting merge tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_sysconfig test_parse_makefile_renamed_vars fails when $CFLAGS is set

2 participants