]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Make sure file object is close if socket.create_connection fails (GH-11334) (GH-11351)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 18 Jan 2019 01:02:43 +0000 (17:02 -0800)
committerNed Deily <nad@python.org>
Fri, 18 Jan 2019 01:02:43 +0000 (20:02 -0500)
commitdc020cc9800ae85f3a241b89ff5fcbc35ba39406
tree8383d5031fda01f1bc2b3fa375a4ff5a8814d82e
parent7eef540ab89e426b622373f43713521876447f2f
Make sure file object is close if socket.create_connection fails (GH-11334) (GH-11351)

The problem affects _testWithTimeoutTriggeredSend in test_socket.py.
(cherry picked from commit 1f511e1af060e98fb789319a96076c06e7f98135)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Lib/test/test_socket.py