~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

Merge http-leaks into smart-server-leaks

Show diffs side-by-side

added added

removed removed

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