~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/ftp_server/medusa_based.py

Merge previous attempt into current trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
254
254
        self._async_thread = threading.Thread(
255
255
                target=FTPTestServer._asyncore_loop_ignore_EBADF,
256
256
                kwargs={'timeout':0.1, 'count':10000})
 
257
        if 'threads' in tests.selftest_debug_flags:
 
258
            print 'Thread started: %s' % (self._async_thread.ident,)
257
259
        self._async_thread.setDaemon(True)
258
260
        self._async_thread.start()
259
261
 
261
263
        self._ftp_server.close()
262
264
        asyncore.close_all()
263
265
        self._async_thread.join()
 
266
        if 'threads' in tests.selftest_debug_flags:
 
267
            print 'Thread  joined: %s' % (self._async_thread.ident,)
264
268
 
265
269
    @staticmethod
266
270
    def _asyncore_loop_ignore_EBADF(*args, **kwargs):