Merge pull request #9294 from ai-man-codes/cleanup/remove-deprecated-test-code

testsuite: remove deprecated manual cleanup in create_cmd_test
This commit is contained in:
TW 2026-02-11 13:50:33 +01:00 committed by GitHub
commit b1e2c29002
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -962,10 +962,6 @@ def test_create_big_zeros_files(archivers, request):
# Also verify the directory structure matches
assert_dirs_equal(archiver.input_path, os.path.join(extract_path, "input"))
# Remove input files
for i in range(count):
os.unlink(os.path.join(archiver.input_path, f"zeros_{i}"))
def test_create_big_random_files(archivers, request):
"""Test creating an archive from 10 files with 10MB random data each."""
@ -998,10 +994,6 @@ def test_create_big_random_files(archivers, request):
# Also verify the directory structure matches
assert_dirs_equal(archiver.input_path, os.path.join(extract_path, "input"))
# Remove input files
for i in range(count):
os.unlink(os.path.join(archiver.input_path, f"random_{i}"))
def test_create_with_compression_algorithms(archivers, request):
"""Test creating archives with different compression algorithms."""
@ -1064,11 +1056,6 @@ def test_create_with_compression_algorithms(archivers, request):
# Also verify the directory structure matches
assert_dirs_equal(archiver.input_path, os.path.join(extract_path, "input"))
# Remove input files
for i in range(count):
os.unlink(os.path.join(archiver.input_path, f"zeros_{i}"))
os.unlink(os.path.join(archiver.input_path, f"random_{i}"))
def test_exclude_nodump_dir_with_file(archivers, request):
"""A directory flagged NODUMP and its contents must not be archived."""