Skip to content

Commit 335efbf

Browse files
committed
Simplify import-tar ignore-zeros negative test
Some of those cleanups are unnecessary since we don't use assert_dirs_equal.
1 parent c999d5d commit 335efbf

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/borg/testsuite/archiver/tar_cmds.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,18 +180,12 @@ def test_import_concatenated_tar_without_ignore_zeros(self):
180180
with open("concatenated.tar", "wb") as concatenated:
181181
with open("file1.tar", "rb") as file1:
182182
concatenated.write(file1.read())
183-
# Clean up for assert_dirs_equal.
184-
os.unlink("file1.tar")
185-
186183
with open("the_rest.tar", "rb") as the_rest:
187184
concatenated.write(the_rest.read())
188-
# Clean up for assert_dirs_equal.
189185
os.unlink("the_rest.tar")
190186

191187
self.cmd(f"--repo={self.repository_location}", "rcreate", "--encryption=none")
192188
self.cmd(f"--repo={self.repository_location}", "import-tar", "dst", "input/concatenated.tar")
193-
# Clean up for assert_dirs_equal.
194-
os.unlink("input/concatenated.tar")
195189

196190
with changedir(self.output_path):
197191
self.cmd(f"--repo={self.repository_location}", "extract", "dst")

0 commit comments

Comments
 (0)