Skip to content

bpo-31448, test_poplib: Fix ResourceWarning #3542

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 13, 2017
Merged

bpo-31448, test_poplib: Fix ResourceWarning #3542

merged 1 commit into from
Sep 13, 2017

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Sep 13, 2017

Call POP3.close(), don't close close directly the sock attribute.

https://bugs.python.org/issue31448

Call POP3.close(), don't close close directly the sock attribute.
@vstinner vstinner requested a review from a team as a code owner September 13, 2017 12:19
@vstinner vstinner merged commit d165e14 into python:master Sep 13, 2017
@vstinner vstinner deleted the test_poplib branch September 13, 2017 12:53
@miss-islington
Copy link
Contributor

Thanks @Haypo for the PR 🌮🎉.. I'm working now to backport this PR to: 3.6.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-3543 is a backport of this pull request to the 3.6 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 13, 2017
Call POP3.close(), don't close close directly the sock attribute.
(cherry picked from commit d165e14)
vstinner pushed a commit that referenced this pull request Sep 13, 2017
Call POP3.close(), don't close close directly the sock attribute.
(cherry picked from commit d165e14)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants