~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-08-30 07:36:41 UTC
  • mfrom: (5394.1.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20100830073641-a8gnwgcuonlkdqqg
(vila) Config files in bazaar home now use a lock (Vincent Ladeuil)

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
 
            sys.stderr.write('Thread started: %s\n'
259
 
                             % (self._async_thread.ident,))
260
257
        self._async_thread.setDaemon(True)
261
258
        self._async_thread.start()
262
259
 
264
261
        self._ftp_server.close()
265
262
        asyncore.close_all()
266
263
        self._async_thread.join()
267
 
        if 'threads' in tests.selftest_debug_flags:
268
 
            sys.stderr.write('Thread  joined: %s\n'
269
 
                             % (self._async_thread.ident,))
270
264
 
271
265
    @staticmethod
272
266
    def _asyncore_loop_ignore_EBADF(*args, **kwargs):