[pypy-commit] pypy py3k: more and more itertools
antocuni
noreply at buildbot.pypy.org
Fri Nov 2 18:52:49 CET 2012
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r58686:c6ffdda5f5cc
Date: 2012-11-02 18:47 +0100
http://bitbucket.org/pypy/pypy/changeset/c6ffdda5f5cc/
Log: more and more itertools
diff --git a/pypy/module/posix/test/test_posix2.py b/pypy/module/posix/test/test_posix2.py
--- a/pypy/module/posix/test/test_posix2.py
+++ b/pypy/module/posix/test/test_posix2.py
@@ -14,10 +14,11 @@
def setup_module(mod):
if os.name != 'nt':
- mod.space = gettestobjspace(usemodules=['posix', 'fcntl', 'struct'])
+ mod.space = gettestobjspace(usemodules=['posix', 'fcntl', 'struct', 'itertools'])
else:
# On windows, os.popen uses the subprocess module
- mod.space = gettestobjspace(usemodules=['posix', '_rawffi', 'thread', 'struct'])
+ mod.space = gettestobjspace(usemodules=['posix', '_rawffi', 'thread', 'struct',
+ 'itertools'])
mod.path = udir.join('posixtestfile.txt')
mod.path.write("this is a test")
mod.path2 = udir.join('test_posix2-')
@@ -49,6 +50,7 @@
GET_POSIX = "(): import %s as m ; return m" % os.name
class AppTestPosix:
+
def setup_class(cls):
cls.space = space
cls.w_posix = space.appexec([], GET_POSIX)
diff --git a/pypy/module/rctime/test/test_rctime.py b/pypy/module/rctime/test/test_rctime.py
--- a/pypy/module/rctime/test/test_rctime.py
+++ b/pypy/module/rctime/test/test_rctime.py
@@ -3,7 +3,7 @@
class AppTestRCTime:
def setup_class(cls):
- space = gettestobjspace(usemodules=('rctime', 'struct'))
+ space = gettestobjspace(usemodules=('rctime', 'struct', 'itertools'))
cls.space = space
def test_attributes(self):
More information about the pypy-commit
mailing list