]> granicus.if.org Git - python/commit
bpo-31448, test_poplib: Fix ResourceWarning (#3542)
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 13 Sep 2017 12:53:10 +0000 (05:53 -0700)
committerGitHub <noreply@github.com>
Wed, 13 Sep 2017 12:53:10 +0000 (05:53 -0700)
commitd165e14e29b45a22450263722f5c2c386c3a748a
tree668b0f6bd988e143b78d09ef43212b1adc2e3147
parenta7b3bc554c6fdc868accc1480038712c74354b42
bpo-31448, test_poplib: Fix ResourceWarning (#3542)

Call POP3.close(), don't close close directly the sock attribute.
Lib/test/test_poplib.py