def test_ipc_send_recv(self):
    self.send_pipe = pyuv.Pipe(self.loop, True)
    self.send_pipe.bind(TEST_PIPE)
    self.channel = pyuv.Pipe(self.loop, True)
    stdio = [pyuv.StdIO(stream=self.channel, flags=((pyuv.UV_CREATE_PIPE | pyuv.UV_READABLE_PIPE) | pyuv.UV_WRITABLE_PIPE))]
    proc = pyuv.Process(self.loop)
    if (sys.platform == 'win32'):
        proc.spawn(file='cmd.exe', args=['/c', ' proc_ipc_echo.py'], exit_callback=self.proc_exit_cb, stdio=stdio)
    else:
        proc.spawn(file=sys.executable, args=['proc_ipc_echo.py'], exit_callback=self.proc_exit_cb, stdio=stdio)
    self.channel.write2(b'.', self.send_pipe)
    self.channel.start_read2(self.on_channel_read)
    self.loop.run()
def test_ipc_send_recv(self):
    self.send_pipe = pyuv.Pipe(self.loop, True)
    self.send_pipe.bind(TEST_PIPE)
    self.channel = pyuv.Pipe(self.loop, True)
    stdio = [pyuv.StdIO(stream=self.channel, flags=((pyuv.UV_CREATE_PIPE | pyuv.UV_READABLE_PIPE) | pyuv.UV_WRITABLE_PIPE))]
    proc = pyuv.Process(self.loop)
    if (sys.platform == 'win32'):
        proc.spawn(file='cmd.exe', args=['/c', ' proc_ipc_echo.py'], exit_callback=self.proc_exit_cb, stdio=stdio)
    else:
        proc.spawn(file=sys.executable, args=['proc_ipc_echo.py'], exit_callback=self.proc_exit_cb, stdio=stdio)
    self.channel.write2(b'.', self.send_pipe)
    self.channel.start_read2(self.on_channel_read)
    self.loop.run()