call site 0 for execnet.PopenGateway.newchannel
execnet/testing/test_gateway.py - line 131
130
131
132
133
134
135
136
   def test_channel_finish_and_then_EOFError(self):
->     channel = self.gw.remote_exec('channel.send(42)') 
       x = channel.receive()
       assert x == 42
       py.test.raises(EOFError, channel.receive) 
       py.test.raises(EOFError, channel.receive) 
       py.test.raises(EOFError, channel.receive) 
execnet/gateway.py - line 285
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
   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._send(Message.CHANNEL_OPEN(
                   channel.id, (source, outid, errid)))
       return channel