Skip to content

Commit

Permalink
schedulestorage_test left a testing dir alive
Browse files Browse the repository at this point in the history
  • Loading branch information
vokimon committed Jul 29, 2022
1 parent eaa182e commit 269230e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tomatic/schedulestorage_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ def cleanUp(self):
for p in reversed(sorted(self.storagedir.glob('**/*'))):
p.rmdir() if p.is_dir() else p.unlink()

if self.storagedir.exists():
self.storagedir.rmdir()

def write(self, filename, content):
(self.storagedir/filename).write_text(content, encoding='utf8')

Expand Down

0 comments on commit 269230e

Please sign in to comment.