Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP4:FactoryCandidates
python-handy-archives
py313-mode-repr.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File py313-mode-repr.patch of Package python-handy-archives
From 85526bff5b6b46aa77dd361ba031291fcb21b195 Mon Sep 17 00:00:00 2001 From: Dominic Davis-Foster <dominic@davis-foster.co.uk> Date: Fri, 21 Jun 2024 11:03:42 +0100 Subject: [PATCH] Skip check for mode in repr on Python 3.13 --- tests/test_zipfile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_zipfile.py b/tests/test_zipfile.py index f2e528f..a54ca21 100644 --- a/tests/test_zipfile.py +++ b/tests/test_zipfile.py @@ -458,7 +458,8 @@ def test_repr(self, tmp_pathplus: PathPlus, testfn: PathPlus): with zipfp.open(fname) as zipopen: r = repr(zipopen) assert f"name={fname!r}" in r - assert "mode='r'" in r + if sys.version_info < (3, 13): + assert "mode='r'" in r if self.compression != zipfile.ZIP_STORED: assert "compress_type=" in r assert "[closed]" in repr(zipopen)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor