call site 0 for execnet.Channel.isclosed
execnet/testing/test_gateway.py - line 357
347
348
349
350
351
352
353
354
355
356
357
358
359
   def test_confusion_from_os_write_stdout(self):
       channel = self.gw.remote_exec("""
               import os
               os.write(1, 'confusion!')
               channel.send(channel.receive() * 6)
               channel.send(channel.receive() * 6)
           """)
       channel.send(3)
       res = channel.receive()
       assert res == 18
->     channel.send(7)
       res = channel.receive()
       assert res == 42
execnet/channel.py - line 154
149
150
151
152
153
154
155
156
157
158
159
160
   def send(self, item):
       """sends the given item to the other side of the channel,
           possibly blocking if the sender queue is full.
           Note that an item needs to be marshallable.
           """
->     if self.isclosed(): 
           raise IOError, "cannot send to %r" %(self,) 
       if isinstance(item, Channel):
           data = Message.CHANNEL_NEW(self.id, item.id)
       else:
           data = Message.CHANNEL_DATA(self.id, item)
       self.gateway._send(data)