]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-110695: test_asyncio uses 50 ms for clock resolution (GH-110952) (#110970)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 17 Oct 2023 10:13:31 +0000 (12:13 +0200)
committerGitHub <noreply@github.com>
Tue, 17 Oct 2023 10:13:31 +0000 (10:13 +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 71391dd8603a6666ef871f0c4a23c06c0830970b..8d44717b2ade6f23441b3a1491d3818f0e010208 100644 (file)
@@ -37,9 +37,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):