Skip to content

Commit fef9a32

Browse files
committed
Adapt test
1 parent 4a694b0 commit fef9a32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing/code/test_source.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def test_source_strip_multiline():
103103
def test_syntaxerror_rerepresentation():
104104
ex = py.test.raises(SyntaxError, py.code.compile, 'xyz xyz')
105105
assert ex.value.lineno == 1
106-
assert ex.value.offset in (4,7) # XXX pypy/jython versus cpython?
106+
assert ex.value.offset in (5, 7) # pypy/cpython difference
107107
assert ex.value.text.strip(), 'x x'
108108

109109
def test_isparseable():

0 commit comments

Comments
 (0)