Skip to content

Commit

Permalink
Adjust test_errors_in_xfail_skip_expressions for PyPy
Browse files Browse the repository at this point in the history
It appears that newer PyPy versions have a different syntax error marker
offset. This patch stripps 7 whitespaces off of the marker line.
  • Loading branch information
x612skm committed Jul 19, 2024
1 parent 9eee45a commit d42b76d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testing/test_skipping.py
Original file line number Diff line number Diff line change
Expand Up @@ -1140,8 +1140,8 @@ def test_func():
result = pytester.runpytest()
markline = " ^"
pypy_version_info = getattr(sys, "pypy_version_info", None)
if pypy_version_info is not None and pypy_version_info < (6,):
markline = markline[1:]
if pypy_version_info is not None:
markline = markline[7:]

if sys.version_info >= (3, 10):
expected = [
Expand Down

0 comments on commit d42b76d

Please sign in to comment.