[Twisted-Python] test_process
carmstro at twistedmatrix.com
carmstro at twistedmatrix.com
Sat Jul 6 20:55:57 MDT 2002
I don't know why, but test_process's testStdio is failing for me.
======================================================================
FAIL: twisted.internet.stdio test.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/chris/Projects/Twisted/twisted/test/test_process.py", line 124, in testStdio
self.assertEquals(p.outF.getvalue(), "hello, worldabc123")
File "/home/chris/Projects/Twisted/pyunit/unittest.py", line 282, in failUnlessEqual
raise self.failureException, (msg or '%s != %s' % (repr(first), repr(second)))
AssertionError: '' != 'hello, worldabc123'
I had bruce and exarkun run the tests and they're not failing for them. I added
a line to the code:
reactor.spawnProcess(p, exe, [exe, "-u", scriptPath], None, None)
p.transport.write("hello, world")
p.transport.write("abc")
+ os.system('ps ax')
p.transport.write("123")
p.transport.closeStdin()
To see what the current processes were, and got something rather interesting:
1479 pts/3 S 0:00 /usr/lib/xemacs-21.4.8/i386-debian-linux//gnuserv
1844 pts/4 S 0:00 python /home/chris/Projects/Twisted/admin/runtests -t
1845 pts/4 Z 0:00 [ls <defunct>]
1848 pts/4 Z 0:00 [python <defunct>]
1849 pts/4 R 0:00 ps ax
Sup with the "defunct"s?
Any ideas?
--
Chris Armstrong
<< radix at twistedmatrix.com >>
http://twistedmatrix.com/users/carmstro.twistd/
More information about the Twisted-Python
mailing list