Author: Armin Rigo <ar...@tunes.org> Branch: py3.5 Changeset: r90202:0e13d85aff3f Date: 2017-02-19 16:14 +0100 http://bitbucket.org/pypy/pypy/changeset/0e13d85aff3f/
Log: fix test diff --git a/pypy/module/imp/test/test_app.py b/pypy/module/imp/test/test_app.py --- a/pypy/module/imp/test/test_app.py +++ b/pypy/module/imp/test/test_app.py @@ -73,7 +73,10 @@ # passed in, whose value is ignored. We don't implement that. #raises(IOError, _imp.create_dynamic, FakeSpec(), "unused") - raises(ImportError, _imp.create_dynamic, FakeSpec(b'foo')) + # Note: On CPython, the following gives nonsense. I suspect + # it's because the b'foo' is read with PyUnicode_Xxx() + # functions that don't check the type of the argument. + raises(TypeError, _imp.create_dynamic, FakeSpec(b'foo')) def test_suffixes(self): import imp _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit