summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncore.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-06-16 11:44:58 (GMT)
committerGitHub <noreply@github.com>2022-06-16 11:44:58 (GMT)
commit484b40bf189ae881992366f2b7b6b63812d18591 (patch)
treebbcd6c86628c194a46904204eeaf7a40672cba48 /Lib/test/test_asyncore.py
parent05b32c1c796d6c80479756ae898f488eac5f4f71 (diff)
downloadcpython-484b40bf189ae881992366f2b7b6b63812d18591.zip
cpython-484b40bf189ae881992366f2b7b6b63812d18591.tar.gz
cpython-484b40bf189ae881992366f2b7b6b63812d18591.tar.bz2
Call busy_retry() and sleeping_retry() with error=True (#93871)
Tests no longer call busy_retry() and sleeping_retry() with error=False: raise an exception if the loop times out.
Diffstat (limited to 'Lib/test/test_asyncore.py')
-rw-r--r--Lib/test/test_asyncore.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_asyncore.py b/Lib/test/test_asyncore.py
index 7d3e201..5a037fb 100644
--- a/Lib/test/test_asyncore.py
+++ b/Lib/test/test_asyncore.py
@@ -76,7 +76,7 @@ def capture_server(evt, buf, serv):
pass
else:
n = 200
- for _ in support.busy_retry(support.SHORT_TIMEOUT, error=False):
+ for _ in support.busy_retry(support.SHORT_TIMEOUT):
r, w, e = select.select([conn], [], [], 0.1)
if r:
n -= 1