From bc009a8582b4787c409528bf9c0d1bc6792d35ce Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Sun, 30 Sep 2018 13:06:48 -0300 Subject: [PATCH] Fix test to comply with pypy 6.0 --- testing/code/test_source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/code/test_source.py b/testing/code/test_source.py index 14f06acd0..66e880e05 100644 --- a/testing/code/test_source.py +++ b/testing/code/test_source.py @@ -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"