BIND 10 trac1275, updated. 8b024ff407a6987a4c7e55f51b9d08c1c9a185d3 [1275] restore the finally statement in run function in the MockMsgq class. As a result of considering any other situation where self.msgq.run() in the try statement is accidentally failed. This changes don't affect the result of the unittest.

BIND 10 source code commits bind10-changes at lists.isc.org
Fri Oct 14 11:56:45 UTC 2011


The branch, trac1275 has been updated
       via  8b024ff407a6987a4c7e55f51b9d08c1c9a185d3 (commit)
      from  419fe34aec67a7bf30991f7df7b568133d8eb541 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 8b024ff407a6987a4c7e55f51b9d08c1c9a185d3
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Fri Oct 14 20:51:50 2011 +0900

    [1275] restore the finally statement in run function in the MockMsgq class.
    As a result of considering any other situation where self.msgq.run() in the
    try statement is accidentally failed. This changes don't affect the result of
    the unittest.

-----------------------------------------------------------------------

Summary of changes:
 src/bin/stats/tests/test_utils.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/bin/stats/tests/test_utils.py b/src/bin/stats/tests/test_utils.py
index b3f40f7..5eb8f92 100644
--- a/src/bin/stats/tests/test_utils.py
+++ b/src/bin/stats/tests/test_utils.py
@@ -101,6 +101,11 @@ class MockMsgq:
             self.msgq.run()
         except Exception:
             pass
+        finally:
+            # explicitly shut down the socket of the msgq before
+            # shutting down the msgq
+            self.msgq.listen_socket.shutdown(msgq.socket.SHUT_RDWR)
+            self.msgq.shutdown()
 
     def shutdown(self):
         # do nothing




More information about the bind10-changes mailing list