]> granicus.if.org Git - python/commit
[3.6] bpo-31448, test_poplib: Fix ResourceWarning (GH-3542) (#3543)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 13 Sep 2017 13:09:44 +0000 (06:09 -0700)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 13 Sep 2017 13:09:44 +0000 (06:09 -0700)
commit769ddb075ac3a840d473930a12a5b72bfbab366f
tree5394a535717726adaa85fefbc016369e3dc37651
parent6c25b73194714e78975eddea3799f06f3de74647
[3.6] bpo-31448, test_poplib: Fix ResourceWarning (GH-3542) (#3543)

Call POP3.close(), don't close close directly the sock attribute.
(cherry picked from commit d165e14e29b45a22450263722f5c2c386c3a748a)
Lib/test/test_poplib.py