Author: Manuel Jacob <m...@manueljacob.de> Branch: py3.3 Changeset: r82334:8ed10a343cd5 Date: 2016-02-19 23:11 +0100 http://bitbucket.org/pypy/pypy/changeset/8ed10a343cd5/
Log: Check for SystemError instead of ValueError. SystemError is raised here on CPython as well, although this is "wrong" and was fixed to be ImportError in CPython's 3.6 branch. diff --git a/pypy/module/imp/test/test_import.py b/pypy/module/imp/test/test_import.py --- a/pypy/module/imp/test/test_import.py +++ b/pypy/module/imp/test/test_import.py @@ -458,14 +458,14 @@ print('__name__ =', __name__) from .struct import inpackage """, ns) - raises(ValueError, ns['imp']) + raises(SystemError, ns['imp']) def test_future_relative_import_error_when_in_non_package2(self): ns = {'__name__': __name__} exec("""def imp(): from .. import inpackage """, ns) - raises(ValueError, ns['imp']) + raises(SystemError, ns['imp']) def test_relative_import_with___name__(self): import sys _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit