From e19a2213a3da3e1b7f86639b0c8bfc159aad628a Mon Sep 17 00:00:00 2001 From: Aiman Date: Wed, 11 Feb 2026 16:10:21 +0530 Subject: [PATCH] testsuite: remove deprecated manual cleanup in create_cmd_test --- src/borg/testsuite/archiver/create_cmd_test.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/borg/testsuite/archiver/create_cmd_test.py b/src/borg/testsuite/archiver/create_cmd_test.py index f02beeb13..04bc6b1ab 100644 --- a/src/borg/testsuite/archiver/create_cmd_test.py +++ b/src/borg/testsuite/archiver/create_cmd_test.py @@ -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."""