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 POSIX
Type: behavior Stage: resolved
Components: Library (Lib), Tests Versions: Python 3.2, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: flox, gregory.p.smith, pitrou
Priority: high Keywords:

Created on 2010-03-19 23:54 by flox, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg101350 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2010-03-19 23:54
The test fails randomly on POSIX platforms since r78527 (fixing issue #7242).
The failure is in the new TestCase: TestForkInThread.


 $ ./python -m test.regrtest -uall -R :: test_thread
test_thread
beginning 9 repetitions
123456789
Unhandled exception in thread started by <function thread1 at 0x26c3f78>
Traceback (most recent call last):
  File "./Lib/test/test_thread.py", line 218, in thread1
    os.close(self.write_fd)
OSError: [Errno 9] Bad file descriptor
.Unhandled exception in thread started by <function thread1 at 0x2863ae0>
Traceback (most recent call last):
  File "./Lib/test/test_thread.py", line 218, in thread1
    os.close(self.write_fd)
OSError: [Errno 9] Bad file descriptor
test test_thread failed -- Traceback (most recent call last):
  File "./Lib/test/test_thread.py", line 120, in test__count
    self.assertEquals(thread._count(), orig + 1)
AssertionError: 1 != 2

1 test failed:
    test_thread
Unhandled exception in thread started by 
Error in sys.excepthook:

Original exception was:
msg101351 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2010-03-20 00:22
Fixed with r79127 and r79128.
History
Date User Action Args
2022-04-11 14:56:58adminsetgithub: 52425
2010-03-20 00:22:01floxsetstatus: open -> closed
versions: + Python 3.2
messages: + msg101351

resolution: fixed
stage: needs patch -> resolved
2010-03-19 23:54:55floxcreate