]> granicus.if.org Git - python/commit
bpo-35998: Fix test_asyncio.test_start_tls_server_1() (GH-16815)
authorVictor Stinner <vstinner@python.org>
Wed, 16 Oct 2019 00:36:42 +0000 (02:36 +0200)
committerGitHub <noreply@github.com>
Wed, 16 Oct 2019 00:36:42 +0000 (02:36 +0200)
commitfab4ef2df0857ab0c97f3058ac5ec3280c4eb891
tree8eff1ae44b5dc6c01c3570253797819c7f736f63
parent3f36043db22361500f52634f2b8de49dde0e7da9
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.
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]