Skip to content

Commit 663edac

Browse files
committed
Fix tests on PyPy
1 parent 875c826 commit 663edac

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

tests/test_utils.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# 3rd party
55
import pytest
66
from coincidence.regressions import AdvancedDataRegressionFixture
7-
from coincidence.selectors import max_version, min_version
7+
from coincidence.selectors import max_version, min_version, not_pypy, only_pypy
88

99
# this package
1010
from formate import yapf_hook
@@ -92,9 +92,10 @@ def test_syntaxerror_for_file():
9292
@pytest.mark.parametrize(
9393
"python_version",
9494
[
95-
pytest.param("3.7", marks=max_version("3.9")),
96-
pytest.param("3.10", marks=[min_version("3.10"), max_version("3.11")]),
97-
pytest.param("3.12", marks=min_version("3.12")),
95+
pytest.param("3.7", marks=[max_version("3.9"), not_pypy()]),
96+
pytest.param("pypy3.7", marks=[max_version("3.9"), only_pypy()]),
97+
pytest.param("3.10", marks=[min_version("3.10"), max_version("3.11"), not_pypy()]),
98+
pytest.param("3.12", marks=[min_version("3.12"), not_pypy()]),
9899
],
99100
)
100101
def test_syntaxerror_for_file_f_string(
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
filename: code.py
2+
lineno: 1
3+
msg: end of line (EOL) while scanning string literal
4+
offset: 2
5+
text: 'f''
6+
7+
'

0 commit comments

Comments
 (0)