Skip to content

Conversation

@sobolevn
Copy link
Member

@sobolevn sobolevn commented Mar 8, 2025

Setting os.environ[TYPESHED_HOME] = typeshed_location without try/finally can lead to not unsetting this value, if an exception happens.

@srittau
Copy link
Collaborator

srittau commented Mar 8, 2025

Why are even resetting the environment? After this, the process quits, which should discard our changes to the environment variables anyway.

@Avasam
Copy link
Collaborator

Avasam commented Jul 30, 2025

We have removed support for pytype, so this PR is no longer relevant.

@Avasam Avasam closed this Jul 30, 2025
@AlexWaygood AlexWaygood deleted the use-finally-in-pytype_tests branch July 30, 2025 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants