Ticket #3872 defect closed fixed
Intermittent test failures in twisted.test.test_process.PosixProcessTestCasePTY
| Reported by: | ivank | Owned by: | ivank |
|---|---|---|---|
| Priority: | lowest | Milestone: | |
| Component: | core | Keywords: | |
| Cc: | jesstess, ivank | Branch: | |
| Author: | Launchpad Bug: |
Description
After running PosixProcessTestCasePTY a few hundred times (with an script running trial twisted.test.test_process.PosixProcessTestCasePTY), I see this on Ubuntu 9.04 server 64 bit (with its default Python 2.6.2 install):
/usr/local/lib/python2.6/dist-packages/twisted/test/test_process.py:10: DeprecationWarning:
The popen2 module is deprecated. Use the subprocess module.
import popen2
twisted.test.test_process
PosixProcessTestCasePTY
testBadArgs ... [OK]
testNormalTermination ... [ERROR]
/usr/local/lib/python2.6/dist-packages/twisted/test/test_process.py:988: PotentialZombieWarning:
spawnProcess called, but the SIGCHLD handler is not installed. This probably means you have not
yet called reactor.run, or called reactor.run(installSignalHandler=0). You will probably never
see this process finish, and it may become a zombie process.
testOpeningTTY ... [ERROR]
test_abnormalTermination ... [OK]
test_errorInProcessEnded ... [OK]
test_executionError ... [OK]
test_signalHUP ... [OK]
test_signalINT ... [OK]
test_signalKILL ... [OK]
test_signalTERM ... [OK]
===============================================================================
[ERROR]: twisted.test.test_process.PosixProcessTestCasePTY.testNormalTermination
Traceback (most recent call last):
Failure: twisted.internet.defer.TimeoutError: <twisted.test.test_process.PosixProcessTestCasePTY
testMethod=testNormalTermination> (testNormalTermination) still running at 120.0 secs
===============================================================================
[ERROR]: twisted.test.test_process.PosixProcessTestCasePTY.testOpeningTTY
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/twisted/internet/_baseprocess.py", line 60, in maybeCallProcessEnded
proto.processEnded(Failure(reason))
File "/usr/local/lib/python2.6/dist-packages/twisted/test/test_process.py", line 165, in processEnded
self.deferred.callback(None)
File "/usr/local/lib/python2.6/dist-packages/twisted/internet/defer.py", line 241, in callback
self._startRunCallbacks(result)
File "/usr/local/lib/python2.6/dist-packages/twisted/internet/defer.py", line 296, in _startRunCallbacks
raise AlreadyCalledError
twisted.internet.defer.AlreadyCalledError:
-------------------------------------------------------------------------------
Ran 10 tests in 120.970s
FAILED (errors=2, successes=8)
Twisted version: trunk, svn r26968
Change History
Note: See
TracTickets for help on using
tickets.
