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
|
@ -27,6 +27,8 @@ class TestMetrics(unittest.TestCase):
|
|||
os.chdir(self.td)
|
||||
|
||||
def tearDown(self):
|
||||
if self.conn:
|
||||
self.conn.shutdown()
|
||||
os.chdir(tempfile.gettempdir())
|
||||
shutil.rmtree(self.td)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue