]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35998: Fix test_asyncio.test_start_tls_server_1() (GH-16815) (GH-16818)
authorVictor Stinner <vstinner@python.org>
Wed, 16 Oct 2019 09:44:30 +0000 (11:44 +0200)
committerGitHub <noreply@github.com>
Wed, 16 Oct 2019 09:44:30 +0000 (11:44 +0200)
commit1bceb0e58905fd6d241d7d566e19ca78558973dd
tree7fad35288381f9ce1d9ba2f87ca9f4addd455dfc
parent5ff8e2dfbe7fa528f0e7ea73cbe9767784c29f04
bpo-35998: Fix test_asyncio.test_start_tls_server_1() (GH-16815) (GH-16818)

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)
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]