[pypy-commit] pypy py3k: enable the array and struct modules, for test_array_write. Else the test imports the corresponding modules in lib_pypy, which are now broken because we no longer have buffer (and I am not sure that fixing them is a good idea)

antocuni noreply at buildbot.pypy.org
Thu Mar 22 14:46:47 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r53896:6e58d4a066e8
Date: 2012-03-22 14:10 +0100
http://bitbucket.org/pypy/pypy/changeset/6e58d4a066e8/

Log:	enable the array and struct modules, for test_array_write. Else the
	test imports the corresponding modules in lib_pypy, which are now
	broken because we no longer have buffer (and I am not sure that
	fixing them is a good idea)

diff --git a/pypy/module/_io/test/test_io.py b/pypy/module/_io/test/test_io.py
--- a/pypy/module/_io/test/test_io.py
+++ b/pypy/module/_io/test/test_io.py
@@ -160,7 +160,7 @@
 
 class AppTestOpen:
     def setup_class(cls):
-        cls.space = gettestobjspace(usemodules=['_io', '_locale'])
+        cls.space = gettestobjspace(usemodules=['_io', '_locale', 'array', 'struct'])
         tmpfile = udir.join('tmpfile').ensure()
         cls.w_tmpfile = cls.space.wrap(str(tmpfile))
 


More information about the pypy-commit mailing list