We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a694b0 commit fef9a32Copy full SHA for fef9a32
testing/code/test_source.py
@@ -103,7 +103,7 @@ def test_source_strip_multiline():
103
def test_syntaxerror_rerepresentation():
104
ex = py.test.raises(SyntaxError, py.code.compile, 'xyz xyz')
105
assert ex.value.lineno == 1
106
- assert ex.value.offset in (4,7) # XXX pypy/jython versus cpython?
+ assert ex.value.offset in (5, 7) # pypy/cpython difference
107
assert ex.value.text.strip(), 'x x'
108
109
def test_isparseable():
0 commit comments