Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r58688:49e712bed205
Date: 2012-11-02 19:03 +0100
http://bitbucket.org/pypy/pypy/changeset/49e712bed205/

Log:    more and more itertools

diff --git a/pypy/objspace/std/test/test_mapdict.py 
b/pypy/objspace/std/test/test_mapdict.py
--- a/pypy/objspace/std/test/test_mapdict.py
+++ b/pypy/objspace/std/test/test_mapdict.py
@@ -652,7 +652,8 @@
         cls.space = gettestobjspace(
             **{"objspace.std.withmapdict": True,
                "objspace.std.withmethodcachecounter": True,
-               "objspace.opcodes.CALL_METHOD": True})
+               "objspace.opcodes.CALL_METHOD": True,
+               "usemodules": ['itertools']})
         #
         def check(space, w_func, name):
             w_code = space.getattr(w_func, space.wrap('__code__'))
diff --git a/pypy/objspace/std/test/test_newformat.py 
b/pypy/objspace/std/test/test_newformat.py
--- a/pypy/objspace/std/test/test_newformat.py
+++ b/pypy/objspace/std/test/test_newformat.py
@@ -6,6 +6,8 @@
 class BaseStringFormatTests:
     """Test format and __format__ methods of string objects."""
 
+    spaceconfig = {'usemodules': ['itertools']}
+
     def test_escape(self):
         assert self.s("{{").format() == "{"
         assert self.s("}}").format() == "}"
@@ -288,7 +290,7 @@
 
 class AppTestFloatFormatting:
     def setup_class(cls):
-        cls.space = gettestobjspace(usemodules=('_locale',))
+        cls.space = gettestobjspace(usemodules=('_locale', 'itertools'))
 
     def test_alternate(self):
         assert format(1.0, "#.0e") == "1.e+00"
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to