Author: Armin Rigo <ar...@tunes.org> Branch: py3.5 Changeset: r90045:7e5648cd878f Date: 2017-02-11 14:59 +0100 http://bitbucket.org/pypy/pypy/changeset/7e5648cd878f/
Log: check_syntax_error(): ignore the offset on pypy, it can often be slightly different than on CPython and I think it's fine diff --git a/lib-python/3/test/support/__init__.py b/lib-python/3/test/support/__init__.py --- a/lib-python/3/test/support/__init__.py +++ b/lib-python/3/test/support/__init__.py @@ -1049,7 +1049,9 @@ if lineno is not None: testcase.assertEqual(err.lineno, lineno) testcase.assertIsNotNone(err.offset) - if offset is not None: + # Don't check the offset on PyPy, it can often be slightly different + # than on CPython + if offset is not None and check_impl_detail(): testcase.assertEqual(err.offset, offset) def open_urlresource(url, *args, **kw): _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit