call site 1 for execnet.Channel.waitclose
test/rsession/testing/test_hostmanage.py - line 132
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
   def test_hrsync_localhost_inplace(self):
       h1 = HostInfo("localhost")
       events = []
       rsync = HostRSync(self.source)
->     h1.initgateway()
       rsync.add_target_host(h1, reporter=events.append)
       assert events
       l = [x for x in events 
               if isinstance(x, repevent.HostRSyncing)]
       assert len(l) == 1
       ev = l[0]
       assert ev.host == h1
       assert ev.root == ev.remotepath 
       l = [x for x in events 
               if isinstance(x, repevent.HostRSyncRootReady)]
       assert len(l) == 1
       ev = l[0]
       assert ev.root == self.source
       assert ev.host == h1
test/rsession/hostmanage.py - line 47
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()