This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_concurrent_futures fails on Windows Server 2003
Type: behavior Stage: needs patch
Components: Library (Lib), Tests, Windows Versions: Python 3.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: bquinlan Nosy List: bquinlan, brian.curtin
Priority: normal Keywords: patch

Created on 2010-10-05 18:25 by brian.curtin, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
error.diff bquinlan, 2010-10-06 09:08 Add more descriptive errors review
Messages (4)
msg118024 - (view) Author: Brian Curtin (brian.curtin) * (Python committer) Date: 2010-10-05 18:25
I haven't seen this on any of my machines except for Windows Server 2003 x64. For whatever reason, SetEvent is failing.


======================================================================
FAIL: test_zero_timeout (test.test_concurrent_futures.ProcessPoolAsCompletedTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\python-dev\py3k\lib\test\test_concurrent_futures.py", line 515, in test_zero_timeout
    call1.close()
  File "C:\python-dev\py3k\lib\test\test_concurrent_futures.py", line 109, in close
    self.set_can()
  File "C:\python-dev\py3k\lib\test\test_concurrent_futures.py", line 100, in set_can
    self._signal_event(self._can_finish)
  File "C:\python-dev\py3k\lib\test\test_concurrent_futures.py", line 83, in _signal_event
    assert r != 0
AssertionError

======================================================================
FAIL: test_zero_timeout (test.test_concurrent_futures.ThreadPoolAsCompletedTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\python-dev\py3k\lib\test\test_concurrent_futures.py", line 515, in test_zero_timeout
    call1.close()
  File "C:\python-dev\py3k\lib\test\test_concurrent_futures.py", line 109, in close
    self.set_can()
  File "C:\python-dev\py3k\lib\test\test_concurrent_futures.py", line 100, in set_can
    self._signal_event(self._can_finish)
  File "C:\python-dev\py3k\lib\test\test_concurrent_futures.py", line 83, in _signal_event
    assert r != 0
AssertionError
msg118060 - (view) Author: Brian Quinlan (bquinlan) * (Python committer) Date: 2010-10-06 09:08
Hey Brian,

Could you try applying the patch that I attached and let me know what error message you get?

Cheers,
(the other) Brian
msg118082 - (view) Author: Brian Curtin (brian.curtin) * (Python committer) Date: 2010-10-06 20:58
I'm getting error 6 aka ERROR_INVALID_HANDLE.

I'll try to figure out what's going on later this week if I can find time. I'll also run this on my Server 2008 machine to see how works.
msg125157 - (view) Author: Brian Quinlan (bquinlan) * (Python committer) Date: 2011-01-03 07:33
Fixed in r87673.
History
Date User Action Args
2022-04-11 14:57:07adminsetgithub: 54237
2011-01-03 07:33:48bquinlansetstatus: open -> closed

messages: + msg125157
resolution: fixed
2010-10-06 20:58:59brian.curtinsetmessages: + msg118082
2010-10-06 09:08:48bquinlansetfiles: + error.diff
keywords: + patch
messages: + msg118060
2010-10-06 08:28:48bquinlansetassignee: bquinlan
2010-10-05 18:25:37brian.curtincreate