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_thread fails on Windows
Type: Stage:
Components: Versions: Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: gregory.p.smith Nosy List: barry, gregory.p.smith, loewis
Priority: release blocker Keywords:

Created on 2010-03-04 07:24 by loewis, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg100378 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2010-03-04 07:24
test_thread currently fails, then hangs on Windows with this output:

test_thread
Unhandled exception in thread started by <function thread1 at 0x0182E4F0>
Traceback (most recent call last):
  File "C:\Python26\lib\test\test_thread.py", line 180, in thread1
    pid = os.fork() # fork in a thread
AttributeError: 'module' object has no attribute 'fork'

I believe the logic in r78551 is reverted: the test should be executed if the sys.platform does *not* start with "win". Negating the condition makes test_thread pass on Windows.
msg100391 - (view) Author: Barry A. Warsaw (barry) * (Python committer) Date: 2010-03-04 15:45
Martin, do you know if this is a regression from 2.6.4?   If so, then +1 for landing a fix for 2.6.5.  We're going to need an rc2 anyway.
msg100406 - (view) Author: Gregory P. Smith (gregory.p.smith) * (Python committer) Date: 2010-03-04 18:27
right that logic is inverted.  my bad.  its fine in trunk already as it uses @unittest.skipIf there.  that decorator doesn't exist in 2.6.

fixed in r78659
msg100418 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2010-03-04 20:37
Just for the record: yes, that was a regression from 2.6.4.
History
Date User Action Args
2022-04-11 14:56:58adminsetgithub: 52301
2010-03-04 20:37:39loewissetmessages: + msg100418
2010-03-04 18:27:52gregory.p.smithsetstatus: open -> closed
resolution: fixed
messages: + msg100406
2010-03-04 15:45:44barrysetmessages: + msg100391
2010-03-04 07:24:42loewiscreate