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 Oct 1, 2018
1 parent d24a7e6 commit 8f60d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/code/test_source.py
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 8f60d4b

Please sign in to comment.