Author: Armin Rigo <[email protected]>
Branch:
Changeset: r47069:8fa344e25292
Date: 2011-09-04 12:48 +0200
http://bitbucket.org/pypy/pypy/changeset/8fa344e25292/
Log: Fix tests.
diff --git a/pypy/module/test_lib_pypy/test_distributed/test_distributed.py
b/pypy/module/test_lib_pypy/test_distributed/test_distributed.py
--- a/pypy/module/test_lib_pypy/test_distributed/test_distributed.py
+++ b/pypy/module/test_lib_pypy/test_distributed/test_distributed.py
@@ -7,7 +7,8 @@
class AppTestDistributed(object):
def setup_class(cls):
- cls.space = gettestobjspace(**{"objspace.std.withtproxy": True})
+ cls.space = gettestobjspace(**{"objspace.std.withtproxy": True,
+ "usemodules":("_continuation",)})
def test_init(self):
import distributed
@@ -88,7 +89,8 @@
assert len(item) == 11
class AppTestDistributedTasklets(object):
- spaceconfig = {"objspace.std.withtproxy": True}
+ spaceconfig = {"objspace.std.withtproxy": True,
+ "objspace.usemodules._continuation": True}
reclimit = sys.getrecursionlimit()
def setup_class(cls):
diff --git a/pypy/module/test_lib_pypy/test_distributed/test_greensock.py
b/pypy/module/test_lib_pypy/test_distributed/test_greensock.py
--- a/pypy/module/test_lib_pypy/test_distributed/test_greensock.py
+++ b/pypy/module/test_lib_pypy/test_distributed/test_greensock.py
@@ -9,7 +9,8 @@
def setup_class(cls):
if not option.runappdirect:
py.test.skip("Cannot run this on top of py.py because of
PopenGateway")
- cls.space = gettestobjspace(**{"objspace.std.withtproxy": True})
+ cls.space = gettestobjspace(**{"objspace.std.withtproxy": True,
+ "usemodules":("_continuation",)})
cls.w_remote_side_code = cls.space.appexec([], """():
import sys
sys.path.insert(0, '%s')
diff --git a/pypy/module/test_lib_pypy/test_distributed/test_socklayer.py
b/pypy/module/test_lib_pypy/test_distributed/test_socklayer.py
--- a/pypy/module/test_lib_pypy/test_distributed/test_socklayer.py
+++ b/pypy/module/test_lib_pypy/test_distributed/test_socklayer.py
@@ -9,7 +9,8 @@
class AppTestSocklayer:
def setup_class(cls):
cls.space = gettestobjspace(**{"objspace.std.withtproxy": True,
- "usemodules":("_socket", "select")})
+ "usemodules":("_continuation",
+ "_socket", "select")})
def test_socklayer(self):
class X(object):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit