]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35602: Make sure the transport is always closed in SelectorEventLoopUnixSockSendf...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 29 Dec 2018 19:38:24 +0000 (11:38 -0800)
committerGitHub <noreply@github.com>
Sat, 29 Dec 2018 19:38:24 +0000 (11:38 -0800)
commitfe06646d186780881fa5ee61442886a6d7cf9f08
treed5eef0b2dc2311f3a7d7fcf2371f0d5956cca2ae
parent0f756f7f564836d4f64e8f144e51f7f55346b919
bpo-35602: Make sure the transport is always closed in SelectorEventLoopUnixSockSendfileTests (GH-11338)

There is a race condition in SelectorEventLoopUnixSockSendfileTests that causes the prepare() method return a non connected server protocol, making the cleanup() method skips the correct handling of the transport. This commit makes prepare() always return a connected server protocol that can always be cleaned up correctly.
(cherry picked from commit d51324a2f5d172665f8824b25456c9822797fc84)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Lib/test/test_asyncio/test_unix_events.py