BIND 10 trac1828, updated. 542d531257cec2b7368d5cde0fdfb7a5595aff8f [1828] Close open handles when done using them (contd.)
BIND 10 source code commits
bind10-changes at lists.isc.org
Mon Apr 16 13:13:42 UTC 2012
The branch, trac1828 has been updated
via 542d531257cec2b7368d5cde0fdfb7a5595aff8f (commit)
from fdb3dfbe8b71bb9a4d5414f7feb3307a8fd1cda6 (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 542d531257cec2b7368d5cde0fdfb7a5595aff8f
Author: Mukund Sivaraman <muks at isc.org>
Date: Mon Apr 16 18:43:27 2012 +0530
[1828] Close open handles when done using them (contd.)
-----------------------------------------------------------------------
Summary of changes:
src/bin/ddns/tests/ddns_test.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/bin/ddns/tests/ddns_test.py b/src/bin/ddns/tests/ddns_test.py
index 395aacc..52b8d09 100755
--- a/src/bin/ddns/tests/ddns_test.py
+++ b/src/bin/ddns/tests/ddns_test.py
@@ -111,6 +111,8 @@ class TestDDNSServer(unittest.TestCase):
self.__select_answer = None
self.__select_exception = None
self.__hook_called = False
+ if self.ddns_server._listen_socket is not None:
+ self.ddns_server._listen_socket.close()
self.ddns_server._listen_socket = FakeSocket(2)
ddns.select.select = self.__select
@@ -139,6 +141,7 @@ class TestDDNSServer(unittest.TestCase):
self.assertIsNone(self.__hook_called)
# Now make sure the clear_socket really works
ddns.clear_socket()
+ ddnss._listen_socket.close()
self.assertFalse(os.path.exists(ddns.SOCKET_FILE))
def test_config_handler(self):
More information about the bind10-changes
mailing list