]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35998: Fix test_asyncio.test_start_tls_server_1() (GH-16815)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 16 Oct 2019 08:36:57 +0000 (01:36 -0700)
committerGitHub <noreply@github.com>
Wed, 16 Oct 2019 08:36:57 +0000 (01:36 -0700)
commitafbcd9f26d1bf5390f56f18c9afbf753e48f230d
treebf9dbad300c26da17d0b7de55bc13642ad311020
parent2d647c0728d82a143bc20707258a7a1be0366558
bpo-35998: Fix test_asyncio.test_start_tls_server_1() (GH-16815)

main() is now responsible to send the ANSWER, rather than
ServerProto. main() now waits until it got the HELLO before sending
the ANSWER over the new transport.

Previously, there was a race condition between main() replacing the
protocol and the protocol sending the ANSWER once it gets the HELLO.

TLSv1.3 was disabled for the test: reenable it.
(cherry picked from commit fab4ef2df0857ab0c97f3058ac5ec3280c4eb891)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_asyncio/test_sslproto.py
Misc/NEWS.d/next/Tests/2019-10-16-01-36-15.bpo-35998.G305Bf.rst [new file with mode: 0644]