mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +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 r
|
||||||
return self.storage_class(url=full_url, _request_func=x, **kwargs)
|
return self.storage_class(url=full_url, _request_func=x, **kwargs)
|
||||||
|
|
||||||
def tearDown(self):
|
def teardown_method(self, method):
|
||||||
self.app = None
|
self.app = None
|
||||||
if self.tmpdir is not None:
|
if self.tmpdir is not None:
|
||||||
shutil.rmtree(self.tmpdir)
|
shutil.rmtree(self.tmpdir)
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ class FilesystemStorageTests(TestCase, StorageTests):
|
||||||
path = self.tmpdir = tempfile.mkdtemp()
|
path = self.tmpdir = tempfile.mkdtemp()
|
||||||
return FilesystemStorage(path=path, fileext='.txt', **kwargs)
|
return FilesystemStorage(path=path, fileext='.txt', **kwargs)
|
||||||
|
|
||||||
def tearDown(self):
|
def teardown_method(self, method):
|
||||||
if self.tmpdir is not None:
|
if self.tmpdir is not None:
|
||||||
shutil.rmtree(self.tmpdir)
|
shutil.rmtree(self.tmpdir)
|
||||||
self.tmpdir = None
|
self.tmpdir = None
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue