From 4cef1f7ecb30f55911261aace30b6c0de2df3f07 Mon Sep 17 00:00:00 2001 From: Ioannis Tziakos Date: Sat, 22 Feb 2025 12:11:00 +0000 Subject: [PATCH] More conditional skips for 3.10.x differences --- cpython-tests/3.10/test_zipfile.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cpython-tests/3.10/test_zipfile.py b/cpython-tests/3.10/test_zipfile.py index c21f313..c527101 100644 --- a/cpython-tests/3.10/test_zipfile.py +++ b/cpython-tests/3.10/test_zipfile.py @@ -3284,7 +3284,7 @@ def test_extract_orig_with_implied_dirs(self, alpharep): zipfile.Path(zf) zf.extractall(source_path.parent) - @unittest.skipIf(sys.version_info < (3, 10, 15), "Issue fixed in Python >= 3.9.15") + @unittest.skipIf(sys.version_info < (3, 10, 15), "Issue fixed in Python >= 3.10.15") def test_malformed_paths(self): """ Path should handle malformed paths gracefully. @@ -3303,6 +3303,7 @@ def test_malformed_paths(self): assert list(map(str, root.iterdir())) == ['../'] assert root.joinpath('..').joinpath('parent.txt').read_bytes() == b'content' + @unittest.skipIf(sys.version_info < (3, 10, 15), "Issue fixed in Python >= 3.10.15") def test_unsupported_names(self): """ Path segments with special characters are readable. @@ -3323,6 +3324,7 @@ def test_unsupported_names(self): assert item.name == 'V: NMS.flac', item.name assert root.joinpath('V: NMS.flac').read_bytes() == b"fLaC..." + @unittest.skipIf(sys.version_info < (3, 10, 15), "Issue fixed in Python >= 3.10.15") def test_backslash_not_separator(self): """ In a zip file, backslashes are not separators.