def test_ipc1(self):
    self.connections = []
    self.local_conn_accepted = False
    self.tcp_server = None
    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.py', 'listen_before_write'], exit_callback=self.proc_exit_cb, stdio=stdio)
    else:
        proc.spawn(file=sys.executable, args=['proc_ipc.py', 'listen_before_write'], exit_callback=self.proc_exit_cb, stdio=stdio)
    self.channel.start_read2(self.on_channel_read)
    self.loop.run()
def test_ipc1(self):
    self.connections = []
    self.local_conn_accepted = False
    self.tcp_server = None
    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.py', 'listen_before_write'], exit_callback=self.proc_exit_cb, stdio=stdio)
    else:
        proc.spawn(file=sys.executable, args=['proc_ipc.py', 'listen_before_write'], exit_callback=self.proc_exit_cb, stdio=stdio)
    self.channel.start_read2(self.on_channel_read)
    self.loop.run()