Skip to content

Commit

Permalink
Employ SanitizedNames in CompleteDirs. Fixes broken test.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed May 31, 2024
1 parent 564fcc1 commit 58115d2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion tests/test_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,6 @@ def test_getinfo_missing(self, alpharep):
with self.assertRaises(KeyError):
alpharep.getinfo('does-not-exist')

@__import__('pytest').mark.skip(reason="infinite loop")
def test_malformed_paths(self):
"""
Path should handle malformed paths.
Expand Down
2 changes: 1 addition & 1 deletion zipp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def allowed(part):
return joined + '/' * name.endswith('/')


class CompleteDirs(InitializedState, zipfile.ZipFile):
class CompleteDirs(InitializedState, SanitizedNames, zipfile.ZipFile):
"""
A ZipFile subclass that ensures that implied directories
are always included in the namelist.
Expand Down

0 comments on commit 58115d2

Please sign in to comment.