mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Fix tmpdir teardown
This commit is contained in:
parent
52ac7dc1fb
commit
26a3932289
2 changed files with 2 additions and 2 deletions
|
|
@ -92,7 +92,7 @@ class DavStorageTests(StorageTests):
|
|||
return r
|
||||
return self.storage_class(url=full_url, _request_func=x, **kwargs)
|
||||
|
||||
def tearDown(self):
|
||||
def teardown_method(self, method):
|
||||
self.app = None
|
||||
if self.tmpdir is not None:
|
||||
shutil.rmtree(self.tmpdir)
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ class FilesystemStorageTests(TestCase, StorageTests):
|
|||
path = self.tmpdir = tempfile.mkdtemp()
|
||||
return FilesystemStorage(path=path, fileext='.txt', **kwargs)
|
||||
|
||||
def tearDown(self):
|
||||
def teardown_method(self, method):
|
||||
if self.tmpdir is not None:
|
||||
shutil.rmtree(self.tmpdir)
|
||||
self.tmpdir = None
|
||||
|
|
|
|||
Loading…
Reference in a new issue