New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_concurrent_futures failure on Windows #54392
Comments
I get this failure quite reliably on a Windows 7 VM, in both 32-bit and 64-bit builds: ====================================================================== Traceback (most recent call last):
File "Y:\py3k\__svn__\lib\test\test_concurrent_futures.py", line 572, in test_map_timeout
self.assertEquals([42, 42], results)
AssertionError: Lists differ: [42, 42] != [] First list contains 2 additional elements.
|
Would you include the entire output of the test run? |
Y:\>py3k\svn\PCbuild\amd64\python_d.exe -m test.regrtest -v test_concurrent_futures test_map_timeout (test.test_concurrent_futures.ProcessPoolExecutorTest) ... FAIL test_submit (test.test_concurrent_futures.ProcessPoolExecutorTest) ... ok test_all_completed (test.test_concurrent_futures.ProcessPoolWaitTests) ... ok test_zero_timeout (test.test_concurrent_futures.ThreadPoolAsCompletedTests) ... test_done_callback_with_exception (test.test_concurrent_futures.FutureTests) ... test_exception_with_success (test.test_concurrent_futures.FutureTests) ... ok ====================================================================== Traceback (most recent call last):
File "Y:\py3k\__svn__\lib\test\test_concurrent_futures.py", line 572, in test_
map_timeout
self.assertEquals([42, 42], results)
AssertionError: Lists differ: [42, 42] != [] First list contains 2 additional elements.
====================================================================== Traceback (most recent call last):
File "Y:\py3k\__svn__\lib\test\test_concurrent_futures.py", line 442, in test_
timeout
future1]), finished)
AssertionError: Items in the first set but not the second:
<Future at 0x2e7e330 state=running> Ran 55 tests in 48.469s FAILED (failures=2) |
Could you try rerunning the tests with the attached patch? It could be that your machines are just terribly slow at starting new Python instances. |
Then I get more failures: ====================================================================== Traceback (most recent call last):
File "Y:\py3k\__svn__\lib\test\test_concurrent_futures.py", line 563, in test_
map_timeout
timeout=10):
File "Y:\py3k\__svn__\lib\concurrent\futures\_base.py", line 546, in map
yield future.result(end_time - time.time())
File "Y:\py3k\__svn__\lib\concurrent\futures\_base.py", line 400, in result
return self.__get_result()
File "Y:\py3k\__svn__\lib\concurrent\futures\_base.py", line 352, in __get_res
ult
raise self._exception
AssertionError ====================================================================== Traceback (most recent call last):
File "Y:\py3k\__svn__\lib\test\test_concurrent_futures.py", line 563, in test_
map_timeout
timeout=10):
File "Y:\py3k\__svn__\lib\concurrent\futures\_base.py", line 546, in map
yield future.result(end_time - time.time())
File "Y:\py3k\__svn__\lib\concurrent\futures\_base.py", line 400, in result
return self.__get_result()
File "Y:\py3k\__svn__\lib\concurrent\futures\_base.py", line 352, in __get_res
ult
raise self._exception
File "Y:\py3k\__svn__\lib\concurrent\futures\thread.py", line 65, in run
result = self.fn(*self.args, **self.kwargs)
File "Y:\py3k\__svn__\lib\test\test_concurrent_futures.py", line 132, in __cal
l__
super().__call__()
File "Y:\py3k\__svn__\lib\test\test_concurrent_futures.py", line 107, in __cal
l__
self._wait_on_event(self._can_finish)
File "Y:\py3k\__svn__\lib\test\test_concurrent_futures.py", line 79, in _wait_
on_event
assert r == 0
AssertionError ====================================================================== Traceback (most recent call last):
File "Y:\py3k\__svn__\lib\test\test_concurrent_futures.py", line 442, in test_
timeout
future1]), finished)
AssertionError: Items in the second set but not the first:
<Future at 0x2c73a80 state=finished raised AssertionError> ====================================================================== Traceback (most recent call last):
File "Y:\py3k\__svn__\lib\test\test_concurrent_futures.py", line 442, in test_
timeout
future1]), finished)
AssertionError: Items in the second set but not the first:
<Future at 0x2c99740 state=finished raised AssertionError> Ran 55 tests in 64.828s FAILED (failures=4) |
Could you try with the patch that I just attached? And thanks for you help, I really appreciated it! |
It works ok indeed. |
Fixed in r10183 |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: