[Python-checkins] r86544 - python/branches/py3k/Lib/test/test_concurrent_futures.py
brian.quinlan
python-checkins at python.org
Sat Nov 20 05:09:35 CET 2010
Author: brian.quinlan
Date: Sat Nov 20 05:09:35 2010
New Revision: 86544
Log:
Fixes a timing-related failure on Windows (issue 10183)
Modified:
python/branches/py3k/Lib/test/test_concurrent_futures.py
Modified: python/branches/py3k/Lib/test/test_concurrent_futures.py
==============================================================================
--- python/branches/py3k/Lib/test/test_concurrent_futures.py (original)
+++ python/branches/py3k/Lib/test/test_concurrent_futures.py Sat Nov 20 05:09:35 2010
@@ -75,7 +75,7 @@
def _wait_on_event(self, handle):
if sys.platform.startswith('win'):
- r = ctypes.windll.kernel32.WaitForSingleObject(handle, 5 * 1000)
+ r = ctypes.windll.kernel32.WaitForSingleObject(handle, 60 * 1000)
assert r == 0
else:
self.CALL_LOCKS[handle].wait()
@@ -433,7 +433,7 @@
EXCEPTION_FUTURE,
SUCCESSFUL_FUTURE,
future1, future2],
- timeout=1,
+ timeout=5,
return_when=futures.ALL_COMPLETED)
self.assertEquals(set([CANCELLED_AND_NOTIFIED_FUTURE,
@@ -560,7 +560,7 @@
try:
for i in self.executor.map(timeout_call,
[False, False, True],
- timeout=1):
+ timeout=5):
results.append(i)
except futures.TimeoutError:
pass
More information about the Python-checkins
mailing list