We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1512d6c commit afcaa29Copy full SHA for afcaa29
Lib/test/test_concurrent_futures/test_as_completed.py
@@ -42,11 +42,14 @@ def test_future_times_out(self):
42
EXCEPTION_FUTURE,
43
SUCCESSFUL_FUTURE}
44
45
- for timeout in (0, 0.01):
+ # Windows clock resolution is around 15.6 ms
46
+ short_timeout = 0.100
47
+ for timeout in (0, short_timeout):
48
with self.subTest(timeout):
49
- future = self.executor.submit(time.sleep, 0.1)
50
completed_futures = set()
51
+ future = self.executor.submit(time.sleep, short_timeout * 10)
52
+
53
try:
54
for f in futures.as_completed(
55
already_completed | {future},
0 commit comments