call site 0 for execnet.Channel.__init__
execnet/testing/test_gateway.py - line 114
113
114
115
116
   def test_remote_exec_error_after_close(self):
->     channel = self.gw.remote_exec('pass')
       channel.waitclose(TESTTIMEOUT)
       py.test.raises(IOError, channel.send, 0)
execnet/gateway.py - line 219
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
   def remote_exec(self, source, stdout=None, stderr=None): 
       """ return channel object and connect it to a remote
               execution thread where the given 'source' executes
               and has the sister 'channel' object in its global 
               namespace.  The callback functions 'stdout' and 
               'stderr' get called on receival of remote 
               stdout/stderr output strings. 
           """
       try:
           source = str(Source(source))
       except NameError: 
           try: 
               import py 
               source = str(py.code.Source(source))
           except ImportError: 
               pass 
->     channel = self.newchannel() 
       outid = self._newredirectchannelid(stdout) 
       errid = self._newredirectchannelid(stderr) 
       self._outgoing.put(Message.CHANNEL_OPEN(channel.id, 
                              (source, outid, errid)))
       return channel 
execnet/gateway.py - line 201
199
200
201
   def newchannel(self): 
       """ return new channel object.  """ 
->     return self._channelfactory.new()
execnet/channel.py - line 215
206
207
208
209
210
211
212
213
214
215
216
217
218
219
   def new(self, id=None):
       """ create a new Channel with 'id' (or create new id if None). """
       self._writelock.acquire()
       try:
           if self.finished:
               raise IOError("connexion already closed: %s" % (self.gateway,))
           if id is None:
               id = self.count
               self.count += 2
->         channel = Channel(self.gateway, id)
           self._channels[id] = channel
           return channel
       finally:
           self._writelock.release()