Author: Armin Rigo <ar...@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') _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit