Преглед на файлове

Merge pull request #421 from Kosmorro/feat/python3.14

tags/v1.0.0rc2
Deuchnord преди 1 месец
committed by GitHub
родител
ревизия
668d30b367
No known key found for this signature in database GPG ключ ID: B5690EEEBB952194
променени са 3 файла, в които са добавени 5 реда и са изтрити 2 реда
  1. +1
    -0
      .github/workflows/tests.yml
  2. +3
    -1
      tests/dates.py
  3. +1
    -1
      tests/general.py

+ 1
- 0
.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:


+ 3
- 1
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"
)




+ 1
- 1
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



Зареждане…
Отказ
Запис