Rev 6178: Debugging info. in http://bazaar.launchpad.net/~jameinel/bzr/2.5-hanging-tests

John Arbash Meinel john at arbash-meinel.com
Fri Sep 30 11:29:59 UTC 2011


At http://bazaar.launchpad.net/~jameinel/bzr/2.5-hanging-tests

------------------------------------------------------------
revno: 6178
revision-id: john at arbash-meinel.com-20110930112935-yn2im56bv7y3a9n9
parent: john at arbash-meinel.com-20110930110851-nt137tj1c4tyloyy
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 2.5-hanging-tests
timestamp: Fri 2011-09-30 13:29:35 +0200
message:
  Debugging info.
-------------- next part --------------
=== modified file 'bzrlib/tests/test_server.py'
--- a/bzrlib/tests/test_server.py	2011-09-15 13:58:23 +0000
+++ b/bzrlib/tests/test_server.py	2011-09-30 11:29:35 +0000
@@ -311,6 +311,7 @@
             try:
                 self.process_request(request, client_address)
             except:
+                trace.mutter('Got an exception: %s' % (sys.exc_info()))
                 self.handle_error(request, client_address)
                 self.close_request(request)
 
@@ -443,7 +444,10 @@
             target = self.process_request_thread,
             args = (started, stopped, request, client_address))
         # Update the client description
-        self.clients.pop()
+        old_info = self.clients.pop()
+        if (old_info != (request, client_address, None)):
+            trace.mutter('mismatched client: %s != %s'
+                         % (old_info, (request, client_address)))
         self.clients.append((request, client_address, t))
         # Propagate the exception handler since we must use the same one as
         # TestingTCPServer for connections running in their own threads.



More information about the bazaar-commits mailing list