Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r58687:971db4e7a42c
Date: 2012-11-02 18:52 +0100
http://bitbucket.org/pypy/pypy/changeset/971db4e7a42c/
Log: more and more itertools
diff --git a/pypy/module/struct/test/test_struct.py
b/pypy/module/struct/test/test_struct.py
--- a/pypy/module/struct/test/test_struct.py
+++ b/pypy/module/struct/test/test_struct.py
@@ -14,7 +14,7 @@
Create a space with the struct module and import it for use by the
tests.
"""
- cls.space = gettestobjspace(usemodules=['struct'])
+ cls.space = gettestobjspace(usemodules=['struct', 'itertools'])
cls.w_struct = cls.space.appexec([], """():
import struct
return struct
diff --git a/pypy/module/sys/test/test_sysmodule.py
b/pypy/module/sys/test/test_sysmodule.py
--- a/pypy/module/sys/test/test_sysmodule.py
+++ b/pypy/module/sys/test/test_sysmodule.py
@@ -142,6 +142,8 @@
class AppTestSysModulePortedFromCPython:
+ spaceconfig = {'usemodules': ['itertools']}
+
def setup_class(cls):
cls.w_appdirect = cls.space.wrap(option.runappdirect)
diff --git a/pypy/module/test_lib_pypy/test_collections.py
b/pypy/module/test_lib_pypy/test_collections.py
--- a/pypy/module/test_lib_pypy/test_collections.py
+++ b/pypy/module/test_lib_pypy/test_collections.py
@@ -7,6 +7,9 @@
from pypy.conftest import gettestobjspace
class AppTestCollections:
+
+ spaceconfig = {'usemodules': ['itertools']}
+
def test_copy(self):
import _collections
def f():
diff --git a/pypy/module/thread/test/support.py
b/pypy/module/thread/test/support.py
--- a/pypy/module/thread/test/support.py
+++ b/pypy/module/thread/test/support.py
@@ -32,7 +32,7 @@
class GenericTestThread:
def setup_class(cls):
- space = gettestobjspace(usemodules=('thread', 'time', 'signal'))
+ space = gettestobjspace(usemodules=('thread', 'time', 'signal',
'itertools'))
cls.space = space
if option.runappdirect:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit