Closed blueyed closed 1 year ago
https://travis-ci.org/pytest-dev/py/jobs/493845887#L312
=================================== FAILURES =================================== ______________________ test_syntaxerror_rerepresentation _______________________ 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? E AssertionError: assert 5 in (4, 7) E + where 5 = SyntaxError('xyz xyz\n ^\n(code was compiled probably from here: <1-codegen /home/travis/virtualenv/pypy3.5-6.0.0/site-packages/_pytest/python.py:1216>)',).offset E + where SyntaxError('xyz xyz\n ^\n(code was compiled probably from here: <1-codegen /home/travis/virtualenv/pypy3.5-6.0.0/site-packages/_pytest/python.py:1216>)',) = <ExceptionInfo SyntaxError tblen=3>.value testing/code/test_source.py:106: AssertionError ________________________________ test_comments _________________________________ def test_comments(): source = '''def test(): "comment 1" x = 1 # comment 2 # comment 3 assert False """ comment 4 """ ''' for line in range(2,6): assert str(getstatement(line, source)) == ' x = 1' for line in range(6,10): > assert str(getstatement(line, source)) == ' assert False' E assert '"""\ncomment 4\n"""' == ' assert False' E + assert False E - """ E - comment 4 E - """ testing/code/test_source.py:516: AssertionError
Anyone up for looking into this?
https://travis-ci.org/pytest-dev/py/jobs/493845887#L312
Anyone up for looking into this?