Skip to content

Commit 29b95e1

Browse files
committed
Add xfail test capturing missed expectation. Ref python/cpython#101566.
1 parent 0a47dda commit 29b95e1

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎tests/test_zipp.py‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,3 +532,15 @@ def test_pickle(self, alpharep, path_type, subpath):
532532
restored_1 = pickle.loads(saved_1)
533533
first, *rest = restored_1.iterdir()
534534
assert first.read_text().startswith('content of ')
535+
536+
@pass_alpharep
537+
def test_extract_orig_with_implied_dirs(self, alpharep):
538+
"""
539+
A zip file wrapped in a Path should extract even with implied dirs.
540+
"""
541+
self.skipTest("Fails due to python-101566")
542+
source_path = self.zipfile_ondisk(alpharep)
543+
zf = zipfile.ZipFile(source_path)
544+
# wrap the zipfile for its side effect
545+
zipp.Path(zf)
546+
zf.extractall(source_path.parent)

0 commit comments

Comments
 (0)