This commit is contained in:
Itai Shirav 2017-02-19 09:01:02 +02:00
parent 6f975a801c
commit 58e322cc52

View File

@ -22,6 +22,8 @@ class SystemPartTest(unittest.TestCase):
self.database.drop_database()
def _get_backups(self):
if not os.path.exists(self.BACKUP_DIR):
return []
_, dirnames, _ = next(os.walk(self.BACKUP_DIR))
return dirnames