[pypy-commit] pypy py3.5: check_syntax_error(): ignore the offset on pypy, it can often be slightly different than on CPython and I think it's fine
arigo
pypy.commits at gmail.com
Sat Feb 11 09:00:48 EST 2017
Author: Armin Rigo <arigo at 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):
More information about the pypy-commit
mailing list