[pypy-commit] pypy default: hopefully the last test for which we need to use the struct module

antocuni noreply at buildbot.pypy.org
Thu Mar 22 21:07:42 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: 
Changeset: r53928:731a24c3d239
Date: 2012-03-22 21:06 +0100
http://bitbucket.org/pypy/pypy/changeset/731a24c3d239/

Log:	hopefully the last test for which we need to use the struct module

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
@@ -987,6 +987,10 @@
             os.environ['LANG'] = oldlang
 
 class AppTestImportHooks(object):
+
+    def setup_class(cls):
+        cls.space = gettestobjspace(usemodules=('struct',))
+    
     def test_meta_path(self):
         tried_imports = []
         class Importer(object):


More information about the pypy-commit mailing list