def test_stdout(self):
"""ProcessProtocol.transport.closeStdout actually closes the pipe."""
d = self.doit(1)
def _check(errput):
self.failIfEqual(errput.find('OSError'), -1)
if runtime.platform.getType() != 'win32':
self.failIfEqual(errput.find('Broken pipe'), -1)
d.addCallback(_check)
return d
评论列表
文章目录