Commit afa5624c authored by Naoki Kambe's avatar Naoki Kambe

[trac698] "None" is set to "_socket" parameter when the session object is closed,

in order to distinguish from the other parameter "_closed".
parent d6c0273c
......@@ -234,7 +234,7 @@ class TestModuleCCSession(unittest.TestCase):
fake_session = FakeModuleCCSession()
mccs = self.create_session("spec1.spec", None, None, fake_session)
self.assertEqual("closed", fake_session._socket)
self.assertEqual(None, fake_session._socket)
def my_config_handler_ok(self, new_config):
return isc.config.ccsession.create_answer(0)
......@@ -95,7 +95,7 @@ class FakeModuleCCSession:
def close(self):
# need to pass along somehow that this function has been called,
self._socket = "closed"
self._socket = None
self._closed = True
def set_timeout(self, timeout):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment