]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[2.7] bpo-34391: Fix ftplib test for TLS 1.3 (GH-8787) (GH-8791)
authorChristian Heimes <christian@python.org>
Thu, 16 Aug 2018 19:38:44 +0000 (21:38 +0200)
committerGitHub <noreply@github.com>
Thu, 16 Aug 2018 19:38:44 +0000 (21:38 +0200)
commit2ec530cd5537dfda5ca0af6ac696e45013ed31d2
treedf29ae4c79c56f1c960b4ed997238e7e3f7bbc97
parent00aebabc7139741fadfe877372c733a2160c7dbd
[2.7] bpo-34391: Fix ftplib test for TLS 1.3 (GH-8787) (GH-8791)

Read from data socket to avoid "[SSL] shutdown while in init" exception
during shutdown of the dummy server.

Signed-off-by: Christian Heimes <christian@python.org>
<!-- issue-number: [bpo-34391](https://www.bugs.python.org/issue34391) -->
https://bugs.python.org/issue34391
<!-- /issue-number -->.
(cherry picked from commit 1590c393360df059160145e7475754427bfc6680)

Co-authored-by: Christian Heimes <christian@python.org>
Lib/test/test_ftplib.py
Misc/NEWS.d/next/Tests/2018-08-16-18-48-47.bpo-34391.ouNfxC.rst [new file with mode: 0644]