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 827bbbb commit 44483a0Copy full SHA for 44483a0
Lib/test/test_concurrent_futures/test_wait.py
@@ -126,15 +126,14 @@ def test_timeout(self):
126
timeout=short_timeout,
127
return_when=futures.ALL_COMPLETED)
128
129
- self.event.set()
130
- futures.wait([future], return_when=futures.ALL_COMPLETED)
131
-
132
self.assertEqual(set([CANCELLED_AND_NOTIFIED_FUTURE,
133
EXCEPTION_FUTURE,
134
SUCCESSFUL_FUTURE]),
135
finished)
136
self.assertEqual(set([future]), pending)
137
+ # Set the event to allow the future to complete
+ self.event.set()
138
139
class ThreadPoolWaitTests(ThreadPoolMixin, WaitTests, BaseTestCase):
140
0 commit comments