Browse Source

strip_components: remove bad test

Thomas Waldmann 2 years ago
parent
commit
7686a721af
1 changed files with 0 additions and 1 deletions
  1. 0 1
      src/borg/testsuite/archiver/patterns.py

+ 0 - 1
src/borg/testsuite/archiver/patterns.py

@@ -22,6 +22,5 @@ class TestBuildFilter:
         matcher = PatternMatcher(fallback=True)
         matcher = PatternMatcher(fallback=True)
         filter = build_filter(matcher, strip_components=1)
         filter = build_filter(matcher, strip_components=1)
         assert not filter(Item(path="shallow"))
         assert not filter(Item(path="shallow"))
-        assert not filter(Item(path="shallow/"))  # can this even happen? paths are normalized...
         assert filter(Item(path="deep enough/file"))
         assert filter(Item(path="deep enough/file"))
         assert filter(Item(path="something/dir/file"))
         assert filter(Item(path="something/dir/file"))