Rev 5269: Cosmetic change. in file:///home/vila/src/bzr/experimental/leaking-tests/

Vincent Ladeuil v.ladeuil+lp at free.fr
Mon Jun 7 09:20:20 BST 2010


At file:///home/vila/src/bzr/experimental/leaking-tests/

------------------------------------------------------------
revno: 5269
revision-id: v.ladeuil+lp at free.fr-20100607082020-40yay6flygu3yp4k
parent: v.ladeuil+lp at free.fr-20100605170604-1l0v8d4y9rh6ci4k
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: propagate-exceptions
timestamp: Mon 2010-06-07 10:20:20 +0200
message:
  Cosmetic change.
  
  * bzrlib/tests/test_server.py:
  (TestingThreadingTCPServer.shutdown_client): Cleanup the variable
  name so the tracebacks are easier to understand.
-------------- next part --------------
=== modified file 'bzrlib/tests/test_server.py'
--- a/bzrlib/tests/test_server.py	2010-06-03 18:32:06 +0000
+++ b/bzrlib/tests/test_server.py	2010-06-07 08:20:20 +0000
@@ -442,14 +442,14 @@
     # The following methods are called by the main thread
 
     def shutdown_client(self, client):
-        sock, addr, t = client
+        sock, addr, connection_thread = client
         self.shutdown_client_socket(sock)
-        if t is not None:
+        if connection_thread is not None:
             # The thread has been created only if the request is processed but
             # after the connection is inited. This could happen during server
             # shutdown. If an exception occurred in the thread it will be
             # re-raised
-            t.join()
+            connection_thread.join()
 
 
 class TestingTCPServerInAThread(transport.Server):



More information about the bazaar-commits mailing list