Skip to content

Fix ResourceWarning: unclosed file in credential provider subprocess#110

Merged
embetten merged 2 commits intomasterfrom
users/embetten/fix-resource-warning-issue-103
Apr 2, 2026
Merged

Fix ResourceWarning: unclosed file in credential provider subprocess#110
embetten merged 2 commits intomasterfrom
users/embetten/fix-resource-warning-issue-103

Conversation

@embetten
Copy link
Copy Markdown
Contributor

@embetten embetten commented Apr 1, 2026

Use subprocess.DEVNULL instead of subprocess.PIPE for stdin (which was never used) and wrap Popen in a context manager so stdout/stderr pipes are automatically closed.

Fixes #103

Use subprocess.DEVNULL instead of subprocess.PIPE for stdin (which was
never used) and wrap Popen in a context manager so stdout/stderr pipes
are automatically closed.

Fixes #103
… into users/embetten/fix-resource-warning-issue-103
@embetten embetten merged commit e9ffade into master Apr 2, 2026
18 checks passed
@embetten embetten deleted the users/embetten/fix-resource-warning-issue-103 branch April 2, 2026 15:42
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.

ResourceWarning: unclosed file

3 participants