Skip to content

Commit d42b76d

Browse files
committed
Adjust test_errors_in_xfail_skip_expressions for PyPy
It appears that newer PyPy versions have a different syntax error marker offset. This patch stripps 7 whitespaces off of the marker line.
1 parent 9eee45a commit d42b76d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testing/test_skipping.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1140,8 +1140,8 @@ def test_func():
11401140
result = pytester.runpytest()
11411141
markline = " ^"
11421142
pypy_version_info = getattr(sys, "pypy_version_info", None)
1143-
if pypy_version_info is not None and pypy_version_info < (6,):
1144-
markline = markline[1:]
1143+
if pypy_version_info is not None:
1144+
markline = markline[7:]
11451145

11461146
if sys.version_info >= (3, 10):
11471147
expected = [

0 commit comments

Comments
 (0)