]> granicus.if.org Git - python/commit
test_socket: use context managers to close directly the socket
authorVictor Stinner <victor.stinner@haypocalc.com>
Mon, 3 Jan 2011 14:30:46 +0000 (14:30 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Mon, 3 Jan 2011 14:30:46 +0000 (14:30 +0000)
commit1d5eb3425baeb363c71e6b8dcb57bec967682d7f
tree07370f375f2613ada3f3a66a08e0ad5c71a0a01c
parenta935e8ffc67bc68092ee30f67e066efaca984a4e
test_socket: use context managers to close directly the socket

Fix ResourceWarning(unclosed socket) warnings. Patch written by Nadeem Vawda.
Lib/test/test_socket.py