Skip to content

Commit 0478c46

Browse files
committed
Restore the slash-prefixed paths in the malformed_paths test.
1 parent 17b77bb commit 0478c46

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_zipfile.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3661,6 +3661,8 @@ def test_malformed_paths(self):
36613661
"""
36623662
data = io.BytesIO()
36633663
zf = zipfile.ZipFile(data, "w")
3664+
zf.writestr("/one-slash.txt", b"content")
3665+
zf.writestr("//two-slash.txt", b"content")
36643666
zf.writestr("../parent.txt", b"content")
36653667
zf.filename = ''
36663668
root = zipfile.Path(zf)

0 commit comments

Comments
 (0)