diff --git a/tests/test_zipp.py b/tests/test_zipp.py index 0d30f5f..dfcd89d 100644 --- a/tests/test_zipp.py +++ b/tests/test_zipp.py @@ -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)