summaryrefslogtreecommitdiffstats
path: root/Lib/turtle.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-11-30 11:29:25 (GMT)
committerGitHub <noreply@github.com>2018-11-30 11:29:25 (GMT)
commitebd5d6d6e6e4e751ba9c7534004aadfc27ba9265 (patch)
tree2edebc8f7592365099b06147b547f683831c156a /Lib/turtle.py
parent55e498058faf8c97840556f6d791c2c392732dc3 (diff)
downloadcpython-ebd5d6d6e6e4e751ba9c7534004aadfc27ba9265.zip
cpython-ebd5d6d6e6e4e751ba9c7534004aadfc27ba9265.tar.gz
cpython-ebd5d6d6e6e4e751ba9c7534004aadfc27ba9265.tar.bz2
bpo-35347: Fix test_socket.NonBlockingTCPTests (GH-10791)
testAccept() and testRecv() of test_socket.NonBlockingTCPTests have a race condition: time.sleep() is used as a weak synchronization primitive and the tests fail randomly on slow buildbots. Use a reliable threading.Event to fix these tests. Other changes: * Replace send() with sendall() * Expect specific BlockingIOError rather than generic OSError * Add a timeout to select() in testAccept() and testRecv() * Use addCleanup() to close sockets * Use assertRaises()
Diffstat (limited to 'Lib/turtle.py')
0 files changed, 0 insertions, 0 deletions