mirror of
https://github.com/9001/copyparty.git
synced 2025-10-03 09:49:29 +02:00
tests/debug: plug some resource leaks
This commit is contained in:
parent
0e31cfa784
commit
2ab8924e2d
10 changed files with 73 additions and 6 deletions
|
@ -19,6 +19,8 @@ class TestDedup(unittest.TestCase):
|
|||
self.td = tu.get_ramdisk()
|
||||
|
||||
def tearDown(self):
|
||||
if self.conn:
|
||||
self.conn.shutdown()
|
||||
os.chdir(tempfile.gettempdir())
|
||||
shutil.rmtree(self.td)
|
||||
|
||||
|
@ -62,7 +64,6 @@ class TestDedup(unittest.TestCase):
|
|||
|
||||
self.conn = None
|
||||
self.fstab = None
|
||||
self.ctr = 0 # 2304
|
||||
for dedup, act_exp in product(tc_dedup, tcs):
|
||||
action, expect = act_exp.split(" ", 1)
|
||||
t = "dedup:%s action:%s" % (dedup, action)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue