]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Make sure file object is close if socket.create_connection fails (GH-11334)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 29 Dec 2018 02:12:39 +0000 (18:12 -0800)
committerGitHub <noreply@github.com>
Sat, 29 Dec 2018 02:12:39 +0000 (18:12 -0800)
commit0f756f7f564836d4f64e8f144e51f7f55346b919
tree2312e2df8abb7b843b928da8e5478db72d83c47c
parent8f9228dd3a37c98876c9c8ff7fb0042650303474
Make sure file object is close if socket.create_connection fails (GH-11334)

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