Skip to content

Commit

Permalink
Fix tests for Python 3.11+
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Apr 29, 2024
1 parent 89243b9 commit 2d85d02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_grammar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])]
Expand Down
4 changes: 2 additions & 2 deletions tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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(
Expand Down

0 comments on commit 2d85d02

Please sign in to comment.