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 d24a7e6 commit bc009a8Copy full SHA for bc009a8
testing/code/test_source.py
@@ -129,7 +129,7 @@ def test_source_strip_multiline():
129
def test_syntaxerror_rerepresentation():
130
ex = pytest.raises(SyntaxError, _pytest._code.compile, "xyz xyz")
131
assert ex.value.lineno == 1
132
- assert ex.value.offset in (4, 7) # XXX pypy/jython versus cpython?
+ assert ex.value.offset in (4, 5, 7) # XXX pypy/jython versus cpython?
133
assert ex.value.text.strip(), "x x"
134
135
0 commit comments