Commit c0cc1838 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[1333r] added comment about why we need to clear some JournalRead attributes

in tearDown.
parent 2d85e22f
......@@ -694,6 +694,11 @@ class JournalRead(unittest.TestCase):
self.reader = None
def tearDown(self):
# Some test leaves the reader in the middle of sequence, holding
# the lock. Since the unittest framework keeps each test object
# until the end of the entire tests, we need to make sure the reader
# is released at the end of each test. The client shouldn't do harm
# but we clean it up, too, just in case.
self.dsc = None
self.reader = None
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