Skip to content

Commit

Permalink
More conditional skips for 3.10.x differences
Browse files Browse the repository at this point in the history
  • Loading branch information
itziakos committed Feb 22, 2025
1 parent 4576f03 commit 4cef1f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cpython-tests/3.10/test_zipfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand All @@ -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.
Expand Down

0 comments on commit 4cef1f7

Please sign in to comment.