diff --git a/src/borg/testsuite/archiver/__init__.py b/src/borg/testsuite/archiver/__init__.py index bc7bfb06c..1fd73224f 100644 --- a/src/borg/testsuite/archiver/__init__.py +++ b/src/borg/testsuite/archiver/__init__.py @@ -422,13 +422,6 @@ def _assert_dirs_equal_cmp(diff, ignore_flags=False, ignore_xattrs=False, ignore _assert_dirs_equal_cmp(sub_diff, ignore_flags=ignore_flags, ignore_xattrs=ignore_xattrs, ignore_ns=ignore_ns) -@contextmanager -def test_extract_file(path): - assert not os.path.exists(path), f"{path} should not exist" - yield - assert os.path.exists(path), f"{path} should exist" - - @contextmanager def read_only(path): """Some paths need to be made read-only for testing