'ProcessProtocol.transport.closeStdout actually closes the pipe.'

def test_stdout(self):

    d = self.doit(1)
    def _check(errput):
        if _PY3:
            if runtime.platform.isWindows():
                self.assertIn('OSError', errput)
                self.assertIn('22', errput)
            else:
                self.assertIn('BrokenPipeError', errput)
        else:
            self.assertIn('OSError', errput)
        if (runtime.platform.getType() != 'win32'):
            self.assertIn('Broken    pipe', errput)
    d.addCallback(_check)
    return d
