From 4d3a80e2d85b6150dfb2f6445a04998d70e18854 Mon Sep 17 00:00:00 2001 From: Deuchnord Date: Sun, 19 Oct 2025 19:26:51 +0200 Subject: [PATCH] feat: add support for Python 3.14 --- .github/workflows/tests.yml | 1 + tests/dates.py | 4 +++- tests/general.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cee2775..b0276d5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -22,6 +22,7 @@ jobs: python-version: - '3.12' - '3.13' + - '3.14' name: Python ${{ matrix.python-version }} on ${{ matrix.os }} steps: diff --git a/tests/dates.py b/tests/dates.py index 94f22cd..dc4e2b5 100644 --- a/tests/dates.py +++ b/tests/dates.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 +from sys import version_info as python_version from .utils import execute, KOSMORRO @@ -38,7 +39,8 @@ def test_with_incorrect_date_values(): result = execute(KOSMORRO + arg) assert not result.successful assert ( - result.stderr == f"The date {value} is not valid: month must be in 1..12\n" + result.stderr + == f"The date {value} is not valid: month must be in 1..12{", not 13" if python_version.minor >= 14 else ""}\n" ) diff --git a/tests/general.py b/tests/general.py index 23f377d..d36c5fd 100644 --- a/tests/general.py +++ b/tests/general.py @@ -34,7 +34,7 @@ def test_help_message(): for arg in ["--help", "-h"]: result = execute(KOSMORRO + [arg]) - assert result.is_successful() + assert result.successful assert result.successful