summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorIllia Volochii <illia.volochii@gmail.com>2023-02-01 11:49:23 +0200
committerGitHub <noreply@github.com>2023-02-01 10:49:23 +0100
commit70b851b73e42dd5fdfbce3aba79be26846c9edc1 (patch)
tree590f2f1531a014f557f866fc2338fc8eaba06335 /test
parent5a90d06cfe389aeac612addaab7c917927ecb0a5 (diff)
downloadurllib3-70b851b73e42dd5fdfbce3aba79be26846c9edc1.tar.gz
Start using final CPython 3.11 and dev 3.12 in CI (#2760)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Quentin Pradet <quentin.pradet@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Diffstat (limited to 'test')
-rw-r--r--test/test_wait.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_wait.py b/test/test_wait.py
index 166d3b24..b5e9d1be 100644
--- a/test/test_wait.py
+++ b/test/test_wait.py
@@ -153,8 +153,11 @@ def test_eintr_zero_timeout(wfs: TYPE_WAIT_FOR, spair: TYPE_SOCKET_PAIR) -> None
signal.setitimer(signal.ITIMER_REAL, 0.001, 0.001)
# Hammer the system call for a while to trigger the
# race.
+ end = time.monotonic() + 5
for i in range(100000):
wfs(a, read=True, timeout=0)
+ if time.monotonic() >= end:
+ break
finally:
# Stop delivering SIGALRM
signal.setitimer(signal.ITIMER_REAL, 0)