From ced0b9bac3b7c6db5619d5c262094813f6e62be7 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 1d895de5a58333..d2453053be2c19 100644 --- a/Lib/test/test_zipfile.py +++ b/Lib/test/test_zipfile.py @@ -3017,6 +3017,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)