call site 0 for execnet.Channel.__del__
test/rsession/testing/test_rsession.py - line 124
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
   def test_setup_teardown_ssh(self):
       hosts = [HostInfo('localhost:%s' % self.dest)]
       setup_events = []
       teardown_events = []
       tmpdir = self.source
       config = py.test.config._reparse([tmpdir])
       hm = HostManager(config, hosts)
->     nodes = hm.setup_hosts(setup_events.append)
       hm.teardown_hosts(teardown_events.append, 
                      [node.channel for node in nodes], nodes)
           
       count_rsyn_calls = [i for i in setup_events 
               if isinstance(i, repevent.HostRSyncing)]
       assert len(count_rsyn_calls) == len([i for i in hosts])
       count_ready_calls = [i for i in setup_events 
               if isinstance(i, repevent.HostRSyncRootReady)]
       assert len(count_ready_calls) == len([i for i in hosts])
           
       # same for teardown events
       teardown_wait_starts = [i for i in teardown_events 
                                   if isinstance(i, repevent.CallStart)]
       teardown_wait_ends = [i for i in teardown_events 
                                   if isinstance(i, repevent.CallFinish)]
       assert len(teardown_wait_starts) == len(hosts)
       assert len(teardown_wait_ends) == len(hosts)
test/rsession/hostmanage.py - line 157
156
157
158
159
160
161
162
163
   def setup_hosts(self, reporter):
->     self.init_rsync(reporter)
       nodes = []
       for host in self.hosts:
           if hasattr(host.gw, 'remote_exec'): # otherwise dummy for tests :/
               ch = setup_slave(host, self.config)
               nodes.append(MasterNode(ch, reporter))
       return nodes
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