]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35602: Make sure the transport is always closed in SelectorEventLoopUnixSockSendf...
authorPablo Galindo <Pablogsal@gmail.com>
Sat, 29 Dec 2018 19:18:38 +0000 (19:18 +0000)
committerGitHub <noreply@github.com>
Sat, 29 Dec 2018 19:18:38 +0000 (19:18 +0000)
commitd51324a2f5d172665f8824b25456c9822797fc84
treead44678a5157310525c5e3f8b5d43f747aec1612
parent78de01198b047347abc5e458851bb12c48429e24
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.
Lib/test/test_asyncio/test_unix_events.py