Allow multiple positions for the SyntaxError in pypy3.6

This commit is contained in:
Anthony Sottile 2019-06-02 18:02:14 -07:00 committed by Bruno Oliveira
parent 96fd44e040
commit 8292644015
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,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 == 7
assert ex.value.offset in {5, 7} # cpython: 7, pypy3.6 7.1.1: 5
assert ex.value.text.strip(), "x x"