call site 5 for execnet.Channel.__del__
test/rsession/testing/test_hostmanage.py - line 227
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
   def test_hostmanager_init_rsync_roots(self):
       dir2 = self.source.ensure("dir1", "dir2", dir=1)
       self.source.ensure("dir1", "somefile", dir=1)
       dir2.ensure("hello")
       self.source.ensure("bogusdir", "file")
       self.source.join("conftest.py").write(py.code.Source("""
               dist_rsync_roots = ['dir1/dir2']
           """))
       config = py.test.config._reparse([self.source])
       hm = HostManager(config, 
                        hosts=[HostInfo("localhost:" + str(self.dest))])
       events = []
->     hm.init_rsync(reporter=events.append)
       assert self.dest.join("dir2").check()
       assert not self.dest.join("dir1").check()
       assert not self.dest.join("bogus").check()
test/rsession/hostmanage.py - line 143
141
142
143
144
145
146
147
148
149
150
151
152
153
154
   def init_rsync(self, reporter):
       ignores = self.config.getvalue_pathlist("dist_rsync_ignore")
->     self.prepare_gateways(reporter)
       # send each rsync root
       for root in self.roots:
           rsync = HostRSync(root, ignores=ignores, 
                             verbose=self.config.option.verbose)
           if self._addrel: 
               destrelpath = ""
           else:
               destrelpath = root.basename
           for host in self.hosts:
               rsync.add_target_host(host, destrelpath, reporter)
           rsync.send(raises=False)
test/rsession/hostmanage.py - line 137
134
135
136
137
138
139
   def prepare_gateways(self, reporter):
       python = self.config.getvalue("dist_remotepython")
       for host in self.hosts:
->         host.initgateway(python=python)
           reporter(repevent.HostGatewayReady(host, self.roots))
           host.gw.host = host