Skip to content

Conversation

@WolframAlph
Copy link
Contributor

@WolframAlph WolframAlph commented Jan 5, 2025

@bedevere-app bedevere-app bot added the tests Tests in the Lib/test dir label Jan 5, 2025
@WolframAlph WolframAlph changed the title gh-128438: Add EnvironmentVarGuard for test_pdb.py gh-128438: Add EnvironmentVarGuard for test_pdb.py Jan 5, 2025
@WolframAlph WolframAlph changed the title gh-128438: Add EnvironmentVarGuard for test_pdb.py gh-128438: Add EnvironmentVarGuard for test_pdb.py Jan 5, 2025
if homesave is not None:
os.environ['HOME'] = homesave
return stdout, stderr
return stdout, stderr
Copy link
Member

Choose a reason for hiding this comment

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

Leave this return statement out of with and it should be good to go.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍 , addressed

@gaogaotiantian gaogaotiantian merged commit 0946ed2 into python:main Jan 11, 2025
40 checks passed
@picnixz
Copy link
Member

picnixz commented Jan 15, 2025

@gaogaotiantian can this be backported to ease future backports or do you prefer to leave it like that? (namely, is there any chance that those lines can be changed in future versions?)

@gaogaotiantian
Copy link
Member

I think it's fine to keep it as it is for previous versions. I don't expect frequent changes to these lines and it's definitely not a bug fix.

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

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants