[pypy-commit] pypy default: List explicitly some of the modules for which it is known to work.

arigo noreply at buildbot.pypy.org
Wed Dec 7 17:40:15 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r50270:139fdb431fef
Date: 2011-12-07 17:29 +0100
http://bitbucket.org/pypy/pypy/changeset/139fdb431fef/

Log:	List explicitly some of the modules for which it is known to work.
	It doesn't work out of the box on any module.

diff --git a/pypy/objspace/fake/objspace.py b/pypy/objspace/fake/objspace.py
--- a/pypy/objspace/fake/objspace.py
+++ b/pypy/objspace/fake/objspace.py
@@ -128,6 +128,12 @@
         is_root(w_step)
         return w_some_obj()
 
+    def newint(self, x):
+        return w_some_obj()
+
+    def newfloat(self, x):
+        return w_some_obj()
+
     def marshal_w(self, w_obj):
         "NOT_RPYTHON"
         raise NotImplementedError
diff --git a/pypy/objspace/fake/test/test_zmodules.py b/pypy/objspace/fake/test/test_zmodules.py
--- a/pypy/objspace/fake/test/test_zmodules.py
+++ b/pypy/objspace/fake/test/test_zmodules.py
@@ -1,10 +1,14 @@
-from pypy.config.pypyoption import working_modules
 from pypy.objspace.fake.checkmodule import checkmodule
-from pypy.tool.sourcetools import compile2
 
 
-for name in sorted(working_modules):
-    exec compile2("""\
-        def test_module_%s():
-            checkmodule(%r)
-    """ % (name, name))
+def test__bisect():
+    checkmodule('_bisect')
+
+def test__random():
+    checkmodule('_random')
+
+def test_itertools():
+    checkmodule('itertools')
+
+def test_micronumpy():
+    checkmodule('micronumpy')


More information about the pypy-commit mailing list