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
|
@ -77,7 +77,8 @@ class CommonTest(unittest.TestCase):
|
|||
fdroidserver.common.options = None
|
||||
os.chdir(self.basedir)
|
||||
self._td.cleanup()
|
||||
shutil.rmtree(self.tmpdir)
|
||||
if os.path.exists(self.tmpdir):
|
||||
shutil.rmtree(self.tmpdir)
|
||||
|
||||
def test_parse_human_readable_size(self):
|
||||
for k, v in (
|
||||
|
|
Loading…
Reference in New Issue