From 43c2b0702c6bd72dc896ef5a4cbead48aed2938d Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Mon, 2 Sep 2024 15:46:28 -0400 Subject: [PATCH] Restore the slash-prefixed paths in the malformed_paths test. --- Lib/test/test_zipfile.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/test_zipfile.py b/Lib/test/test_zipfile.py index a5cb3704d01ab0..5809b2c00060a6 100644 --- a/Lib/test/test_zipfile.py +++ b/Lib/test/test_zipfile.py @@ -3064,6 +3064,8 @@ def test_malformed_paths(self): """ data = io.BytesIO() zf = zipfile.ZipFile(data, "w") + zf.writestr("/one-slash.txt", b"content") + zf.writestr("//two-slash.txt", b"content") zf.writestr("../parent.txt", b"content") zf.filename = '' root = zipfile.Path(zf)