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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
From 71e2af1ef9cb447b641ba387b44b9c83a4b570b7 Mon Sep 17 00:00:00 2001
From: benoit74 <benoit74@users.noreply.github.com>
Date: Tue, 4 Nov 2025 12:34:03 +0000
Subject: Drop support for Python 3.9, add support for Python 3.14, upgrade
dependencies
Python 3.9 is EOL and coverage 7.11.0 supports only Python >= 3.10
---
tests/test_libzim_creator.py | 5 ++++-
tests/test_libzim_version.py | 4 ++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/tests/test_libzim_creator.py b/tests/test_libzim_creator.py
index cc9ef27..7bd8e04 100644
--- a/tests/test_libzim_creator.py
+++ b/tests/test_libzim_creator.py
@@ -373,7 +373,10 @@ def test_creator_additem(fpath, lipsum_item):
c.add_item(None) # pyright: ignore [reportCallIssue, reportArgumentType]
with pytest.raises(RuntimeError):
c.add_item("hello") # pyright: ignore [reportCallIssue, reportArgumentType]
- with pytest.raises(TypeError, match="takes exactly 1 positional argument"):
+ with pytest.raises(
+ TypeError,
+ match="got an unexpected keyword argument 'mimetype'",
+ ):
c.add_item(mimetype="text/html") # pyright: ignore [reportCallIssue]
diff --git a/tests/test_libzim_version.py b/tests/test_libzim_version.py
index 41d3d73..89de1d2 100644
--- a/tests/test_libzim_version.py
+++ b/tests/test_libzim_version.py
@@ -11,14 +11,14 @@ from libzim.version import ( # pyright: ignore [reportMissingModuleSource]
def test_version_print_version_with_stdout(capsys):
print_versions()
print("", file=sys.stdout, flush=True)
- stdout, stderr = capsys.readouterr()
+ stdout, _ = capsys.readouterr()
assert len(stdout) != 0
def test_version_print_version_with_stderr(capsys):
print_versions(sys.stderr)
print("", file=sys.stderr, flush=True)
- stdout, stderr = capsys.readouterr()
+ _, stderr = capsys.readouterr()
assert len(stderr) != 0
--
2.30.2
|