Skip to content

Commit

Permalink
Add failing test that shows that glob() is always rglob()
Browse files Browse the repository at this point in the history
  • Loading branch information
nh2 committed Jul 9, 2023
1 parent ee6d711 commit d0e4f08
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_zipp.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,9 @@ def test_match_and_glob(self, alpharep):
root = zipp.Path(alpharep)
assert not root.match("*.txt")

assert list(root.glob("*/i.txt")) == []
assert list(root.rglob("*/i.txt")) == [zipp.Path(alpharep, "g/h/i.txt")]

assert list(root.glob("b/c.*")) == [zipp.Path(alpharep, "b/c.txt")]

files = root.glob("**/*.txt")
Expand Down

0 comments on commit d0e4f08

Please # to comment.