We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96fd44e commit 8292644Copy full SHA for 8292644
testing/code/test_source.py
@@ -113,7 +113,7 @@ def test_source_strip_multiline():
113
def test_syntaxerror_rerepresentation():
114
ex = pytest.raises(SyntaxError, _pytest._code.compile, "xyz xyz")
115
assert ex.value.lineno == 1
116
- assert ex.value.offset == 7
+ assert ex.value.offset in {5, 7} # cpython: 7, pypy3.6 7.1.1: 5
117
assert ex.value.text.strip(), "x x"
118
119
0 commit comments