1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
From: Dominic Davis-Foster <dominic@davis-foster.co.uk>
Date: Fri, 21 Jun 2024 11:03:42 +0100
Subject: Skip check for mode in repr on Python 3.13
Origin: upstream, https://github.com/domdfcoding/handy-archives/commit/85526bff5b6b46aa77dd361ba031291fcb21b195
Bug-Debian: https://bugs.debian.org/1092547
Last-Update: 2025-01-09
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 ae98402..c57751f 100644
@@ -457,7 +457,8 @@ class AbstractTestsWithSourceFile:
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)
|