Fix test to comply with pypy 6.0

This commit is contained in:
Bruno Oliveira 2018-09-30 13:06:48 -03:00
parent d24a7e6c5a
commit bc009a8582
1 changed files with 1 additions and 1 deletions

View File

@ -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 (4, 5, 7) # XXX pypy/jython versus cpython?
assert ex.value.text.strip(), "x x"