Skip to content

Commit 2d85d02

Browse files
committed
Fix tests for Python 3.11+
1 parent 89243b9 commit 2d85d02

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/test_grammar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
platforms = {*platforms, *(p.lower() for p in platforms)}
1616

1717
versions = [(2, 7)]
18-
versions.extend((3, v) for v in range(13))
18+
versions.extend((3, v) for v in range(14))
1919
versions.append((4, 0))
2020

2121
versions_before = versions[:versions.index(sys.version_info[:2])]

tests/test_plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# 3rd party
66
import coverage
77
import pytest
8-
from coincidence import only_version
8+
from coincidence import min_version, only_version
99
from coincidence.regressions import check_file_regression
1010
from coverage.python import PythonParser
1111
from domdf_python_tools.paths import PathPlus
@@ -22,7 +22,7 @@
2222
pytest.param("3.7", marks=only_version(3.7, "Output differs on each version.")),
2323
pytest.param("3.8", marks=only_version(3.8, "Output differs on each version.")),
2424
pytest.param("3.9", marks=only_version(3.9, "Output differs on each version.")),
25-
pytest.param("3.10", marks=only_version("3.10", "Output differs on each version.")),
25+
pytest.param("3.10", marks=min_version("3.10", "Output differs on each version.")),
2626
]
2727
)
2828
def test_plugin(

0 commit comments

Comments
 (0)