Skip to content

Commit

Permalink
Add test capturing empty glob pattern.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Nov 25, 2022
1 parent 8325251 commit 4e271ca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_zipp.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,11 @@ def test_match_and_glob(self, alpharep):

assert list(root.glob("**/*.txt")) == list(root.rglob("*.txt"))

def test_glob_empty(self):
root = zipp.Path(zipfile.ZipFile(io.BytesIO(), 'w'))
with self.assertRaises(ValueError):
root.glob('')

@pass_alpharep
def test_eq_hash(self, alpharep):
root = zipp.Path(alpharep)
Expand Down

0 comments on commit 4e271ca

Please sign in to comment.