call site 0 for execnet.PopenGateway.__init__
test/rsession/testing/test_hostmanage.py - line 164
158
159
160
161
162
163
164
165
166
167
168
169
   def test_hrsync_same_host_twice(self):
       h1 = self._gethostinfo()
       h2 = self._gethostinfo()
       finished = []
       rsync = HostRSync(self.source)
       l = []
->     h1.initgateway()
       h2.initgateway()
       res1 = rsync.add_target_host(h1)
       assert res1
       res2 = rsync.add_target_host(h2)
       assert not res2
test/rsession/hostmanage.py - line 41
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
   def initgateway(self, python="python"):
       if self.hostname == "localhost":
->         self.gw = py.execnet.PopenGateway(python=python)
       else:
           self.gw = py.execnet.SshGateway(self.hostname, 
                                           remotepython=python)
       if self.inplacelocal:
           self.gw.remote_exec(py.code.Source(
               sethomedir, "sethomedir()"
           )).waitclose()
           self.gw_remotepath = None
       else:
           assert self.relpath
           channel = self.gw.remote_exec(py.code.Source(
               gethomedir,
               sethomedir, "sethomedir()", 
               getpath_relto_home, """
                   channel.send(getpath_relto_home(%r))
               """ % self.relpath,
           ))
           self.gw_remotepath = channel.receive()