]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-110695: test_asyncio uses 50 ms for clock resolution (GH-110952) (#110971)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 17 Oct 2023 09:59:10 +0000 (11:59 +0200)
committerGitHub <noreply@github.com>
Tue, 17 Oct 2023 09:59:10 +0000 (09:59 +0000)
gh-110695: test_asyncio uses 50 ms for clock resolution (GH-110952)

Before utils.CLOCK_RES constant was added (20 ms), test_asyncio
already used 50 ms.
(cherry picked from commit 9a9fba825f8aaee4ea9b3429875c6c6324d0dee0)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_asyncio/utils.py

index f49db4e37b359233c9a9a107fd2c728366022efc..d6f60db10f9b3f2346a3ea313b899ca64b50240e 100644 (file)
@@ -38,9 +38,9 @@ from test.support import threading_helper
 
 
 # Use the maximum known clock resolution (gh-75191, gh-110088): Windows
-# GetTickCount64() has a resolution of 15.6 ms.  Use 20 ms to tolerate rounding
+# GetTickCount64() has a resolution of 15.6 ms. Use 50 ms to tolerate rounding
 # issues.
-CLOCK_RES = 0.020
+CLOCK_RES = 0.050
 
 
 def data_file(*filename):