Skip to content

Commit 4e271ca

Browse files
committed
Add test capturing empty glob pattern.
1 parent 8325251 commit 4e271ca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_zipp.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,11 @@ def test_match_and_glob(self, alpharep):
415415

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

418+
def test_glob_empty(self):
419+
root = zipp.Path(zipfile.ZipFile(io.BytesIO(), 'w'))
420+
with self.assertRaises(ValueError):
421+
root.glob('')
422+
418423
@pass_alpharep
419424
def test_eq_hash(self, alpharep):
420425
root = zipp.Path(alpharep)

0 commit comments

Comments
 (0)