Skip to content

Commit 58115d2

Browse files
committed
Employ SanitizedNames in CompleteDirs. Fixes broken test.
1 parent 564fcc1 commit 58115d2

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

tests/test_path.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,6 @@ def test_getinfo_missing(self, alpharep):
572572
with self.assertRaises(KeyError):
573573
alpharep.getinfo('does-not-exist')
574574

575-
@__import__('pytest').mark.skip(reason="infinite loop")
576575
def test_malformed_paths(self):
577576
"""
578577
Path should handle malformed paths.

zipp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def allowed(part):
148148
return joined + '/' * name.endswith('/')
149149

150150

151-
class CompleteDirs(InitializedState, zipfile.ZipFile):
151+
class CompleteDirs(InitializedState, SanitizedNames, zipfile.ZipFile):
152152
"""
153153
A ZipFile subclass that ensures that implied directories
154154
are always included in the namelist.

0 commit comments

Comments
 (0)