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

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy