/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: Neil Martinsen-Burrell
  • Date: 2010-09-26 02:27:37 UTC
  • mfrom: (5424 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5461.
  • Revision ID: nmb@wartburg.edu-20100926022737-cj2qvebm2mhpjzak
mergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2007, 2008, 2009 Canonical Ltd
 
1
# Copyright (C) 2007-2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
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,))
257
260
        self._async_thread.setDaemon(True)
258
261
        self._async_thread.start()
259
262
 
261
264
        self._ftp_server.close()
262
265
        asyncore.close_all()
263
266
        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,))
264
270
 
265
271
    @staticmethod
266
272
    def _asyncore_loop_ignore_EBADF(*args, **kwargs):