~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_server.py

(gz) Provide st_uid and st_gid on _Win32Stat so it looks more like a normal
 stat object (Alexander Belchenko)

Show diffs side-by-side

added added

removed removed

Lines of Context:
287
287
 
288
288
    def serve(self):
289
289
        self.serving = True
290
 
        self.stopped.clear()
291
290
        # We are listening and ready to accept connections
292
291
        self.started.set()
293
292
        try:
453
452
        if debug_threads():
454
453
            sys.stderr.write('Client thread %s started\n' % (t.name,))
455
454
        # If an exception occured during the thread start, it will get raised.
 
455
        # In rare cases, an exception raised during the request processing may
 
456
        # also get caught here (see http://pad.lv/869366)
456
457
        t.pending_exception()
457
458
 
458
459
    # The following methods are called by the main thread
508
509
            sync_event=self.server.started,
509
510
            target=self.run_server)
510
511
        self._server_thread.start()
511
 
        # Wait for the server thread to start (i.e release the lock)
 
512
        # Wait for the server thread to start (i.e. release the lock)
512
513
        self.server.started.wait()
513
514
        # Get the real address, especially the port
514
515
        self.host, self.port = self.server.server_address