mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
common: only try to delete .testfiles dir if it exists
Otherwise, some tests fail with an error.
This commit is contained in:
parent
18f3acc32e
commit
5745ed4753
1 changed files with 2 additions and 1 deletions
|
|
@ -77,7 +77,8 @@ class CommonTest(unittest.TestCase):
|
||||||
fdroidserver.common.options = None
|
fdroidserver.common.options = None
|
||||||
os.chdir(self.basedir)
|
os.chdir(self.basedir)
|
||||||
self._td.cleanup()
|
self._td.cleanup()
|
||||||
shutil.rmtree(self.tmpdir)
|
if os.path.exists(self.tmpdir):
|
||||||
|
shutil.rmtree(self.tmpdir)
|
||||||
|
|
||||||
def test_parse_human_readable_size(self):
|
def test_parse_human_readable_size(self):
|
||||||
for k, v in (
|
for k, v in (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue