]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
test_asyncore: Optimize capture_server() (#93867)
authorVictor Stinner <vstinner@python.org>
Wed, 15 Jun 2022 16:28:31 +0000 (18:28 +0200)
committerGitHub <noreply@github.com>
Wed, 15 Jun 2022 16:28:31 +0000 (18:28 +0200)
commit46e455f21c23b03fd68055fbd97e9d0c449f00a5
tree6708d1f01c158a3fda4554849cc9f69462233d4d
parent41fccd23e9b4397d6cc294b42e1a198cd8f8b268
test_asyncore: Optimize capture_server() (#93867)

Remove time.sleep(0.01) in test_asyncore capture_server(). The sleep
was redundant and inefficient, since the loop starts with
select.select() which also implements a sleep (poll for socket data
with a timeout).
Lib/test/test_asyncore.py