From 2d85d0213c406d5e0a8a22df0ba1f00f2cfd730b Mon Sep 17 00:00:00 2001 From: Dominic Davis-Foster Date: Mon, 29 Apr 2024 11:05:04 +0100 Subject: [PATCH] Fix tests for Python 3.11+ --- tests/test_grammar.py | 2 +- tests/test_plugin.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_grammar.py b/tests/test_grammar.py index b2e84e1..24496b9 100644 --- a/tests/test_grammar.py +++ b/tests/test_grammar.py @@ -15,7 +15,7 @@ platforms = {*platforms, *(p.lower() for p in platforms)} versions = [(2, 7)] -versions.extend((3, v) for v in range(13)) +versions.extend((3, v) for v in range(14)) versions.append((4, 0)) versions_before = versions[:versions.index(sys.version_info[:2])] diff --git a/tests/test_plugin.py b/tests/test_plugin.py index fefbbfc..9138582 100644 --- a/tests/test_plugin.py +++ b/tests/test_plugin.py @@ -5,7 +5,7 @@ # 3rd party import coverage import pytest -from coincidence import only_version +from coincidence import min_version, only_version from coincidence.regressions import check_file_regression from coverage.python import PythonParser from domdf_python_tools.paths import PathPlus @@ -22,7 +22,7 @@ pytest.param("3.7", marks=only_version(3.7, "Output differs on each version.")), pytest.param("3.8", marks=only_version(3.8, "Output differs on each version.")), pytest.param("3.9", marks=only_version(3.9, "Output differs on each version.")), - pytest.param("3.10", marks=only_version("3.10", "Output differs on each version.")), + pytest.param("3.10", marks=min_version("3.10", "Output differs on each version.")), ] ) def test_plugin(