Skip to content

Commit cc85284

Browse files
committed
delete archive first
1 parent 38189fa commit cc85284

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/unit/test_files.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ def test_remove(self):
9494
)
9595

9696
def test_compress(self):
97+
while Path("test.tar.gz").exists():
98+
Path("test.tar.gz").unlink()
9799
self.directory.write(file_name="test1.txt", content="something")
98100
self.directory.write(file_name="test2.txt", content="something")
99101
self.directory.compress(exclude_files=["test1.txt"])

0 commit comments

Comments
 (0)