Skip to content

Commit 885d0e7

Browse files
committed
Add test for getinfo on a missing. Restores 100% coverage.
1 parent bf85e75 commit 885d0e7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_zipp.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,3 +530,12 @@ def test_extract_orig_with_implied_dirs(self, alpharep):
530530
# wrap the zipfile for its side effect
531531
zipp.Path(zf)
532532
zf.extractall(source_path.parent)
533+
534+
@pass_alpharep
535+
def test_getinfo_missing(self, alpharep):
536+
"""
537+
Validate behavior of getinfo on original zipfile after wrapping.
538+
"""
539+
zipp.Path(alpharep)
540+
with self.assertRaises(KeyError):
541+
alpharep.getinfo('does-not-exist')

0 commit comments

Comments
 (0)