BIND 10 trac1828, updated. aef9cc2d584e6eda16792f126a6c018e61fd5d5e [1828] Close open handles when done using them (contd.)
BIND 10 source code commits
bind10-changes at lists.isc.org
Mon Apr 16 14:22:54 UTC 2012
The branch, trac1828 has been updated
via aef9cc2d584e6eda16792f126a6c018e61fd5d5e (commit)
from 6725498ecb8a8305608fd826116cfa09ac81a1bd (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 aef9cc2d584e6eda16792f126a6c018e61fd5d5e
Author: Mukund Sivaraman <muks at isc.org>
Date: Mon Apr 16 19:52:42 2012 +0530
[1828] Close open handles when done using them (contd.)
-----------------------------------------------------------------------
Summary of changes:
.../isc/util/cio/tests/socketsession_test.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/python/isc/util/cio/tests/socketsession_test.py b/src/lib/python/isc/util/cio/tests/socketsession_test.py
index ab66e1a..8200ece 100644
--- a/src/lib/python/isc/util/cio/tests/socketsession_test.py
+++ b/src/lib/python/isc/util/cio/tests/socketsession_test.py
@@ -172,13 +172,15 @@ class TestForwarder(unittest.TestCase):
sock.settimeout(10)
self.assertEqual(TEST_DATA, sock.recvfrom(len(TEST_DATA))[0])
else:
- server_sock.close()
self.assertEqual(len(TEST_DATA), passed_sock.send(TEST_DATA))
client_sock.setblocking(True)
client_sock.settimeout(10)
self.assertEqual(TEST_DATA, client_sock.recv(len(TEST_DATA)))
+ server_sock.close()
client_sock.close()
+ self.listen_sock.close()
+ passed_sock.close()
sock.close()
def test_push_and_pop(self):
@@ -238,6 +240,7 @@ class TestForwarder(unittest.TestCase):
receiver = SocketSessionReceiver(accept_sock)
s.close()
self.assertRaises(SocketSessionError, receiver.pop)
+ accept_sock.close()
class TestReceiver(unittest.TestCase):
# We only check a couple of failure cases on construction. Valid cases
More information about the bind10-changes
mailing list