Commit dec73bbd authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner

[trac698] Don't delete object twice

parent e1e59278
......@@ -236,10 +236,14 @@ class TestModuleCCSession(unittest.TestCase):
mccs.close()
self.assertEqual(None, fake_session._socket)
def test___del__(self):
def test_del_opened(self):
fake_session = FakeModuleCCSession()
mccs = self.create_session("spec1.spec", None, None, fake_session)
mccs.__del__() # with opened fake_session
def test_del_closed(self):
fake_session = FakeModuleCCSession()
mccs = self.create_session("spec1.spec", None, None, fake_session)
fake_session.close()
mccs.__del__() # with closed fake_session
......
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