[pypy-commit] pypy py3.5: fix test

arigo pypy.commits at gmail.com
Sun Feb 19 10:14:54 EST 2017


Author: Armin Rigo <arigo at 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


More information about the pypy-commit mailing list