[pypy-svn] pypy simplify-conftest: Set "usemodules", not "objspace.usemodules"

amauryfa commits-noreply at bitbucket.org
Mon Jan 10 16:30:28 CET 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: simplify-conftest
Changeset: r40559:14c45b1663b1
Date: 2011-01-10 15:27 +0100
http://bitbucket.org/pypy/pypy/changeset/14c45b1663b1/

Log:	Set "usemodules", not "objspace.usemodules" otherwise the test is
	skipped when CPython runs it with -A

diff --git a/pypy/module/__builtin__/test/test_buffer.py b/pypy/module/__builtin__/test/test_buffer.py
--- a/pypy/module/__builtin__/test/test_buffer.py
+++ b/pypy/module/__builtin__/test/test_buffer.py
@@ -4,7 +4,7 @@
 from pypy.conftest import gettestobjspace
 
 class AppTestBuffer:
-    spaceconfig = {'objspace.usemodules.array': True}
+    spaceconfig = dict(usemodules=['array'])
 
     def test_unicode_buffer(self):
         import sys

diff --git a/pypy/module/_io/test/test_bufferedio.py b/pypy/module/_io/test/test_bufferedio.py
--- a/pypy/module/_io/test/test_bufferedio.py
+++ b/pypy/module/_io/test/test_bufferedio.py
@@ -3,8 +3,9 @@
 from pypy.tool.udir import udir
 
 class AppTestBufferedReader:
+    spaceconfig = dict(usemodules=['_io'])
+
     def setup_class(cls):
-        cls.space = gettestobjspace(usemodules=['_io'])
         tmpfile = udir.join('tmpfile')
         tmpfile.write("a\nb\nc", mode='wb')
         cls.w_tmpfile = cls.space.wrap(str(tmpfile))


More information about the Pypy-commit mailing list