Skip to content

Commit

Permalink
Adapt test
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus committed Dec 11, 2020
1 parent 4a694b0 commit fef9a32
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 @@ -103,7 +103,7 @@ def test_source_strip_multiline():
def test_syntaxerror_rerepresentation():
ex = py.test.raises(SyntaxError, py.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) # pypy/cpython difference
assert ex.value.text.strip(), 'x x'

def test_isparseable():
Expand Down

0 comments on commit fef9a32

Please sign in to comment.