Skip to content

Commit

Permalink
Fix test to comply with pypy 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus committed Sep 30, 2018
1 parent a664fb2 commit 7362670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/code/test_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def test_source_strip_multiline():
def test_syntaxerror_rerepresentation():
ex = pytest.raises(SyntaxError, _pytest._code.compile, "xyz xyz")
assert ex.value.lineno == 1
assert ex.value.offset in (4, 7) # XXX pypy/jython versus cpython?
assert ex.value.offset in (5, 7) # XXX pypy/jython versus cpython?
assert ex.value.text.strip(), "x x"


Expand Down

0 comments on commit 7362670

Please sign in to comment.