[pypy-svn] r28628 - pypy/dist/pypy/module/stackless/test

tismer at codespeak.net tismer at codespeak.net
Sat Jun 10 17:08:09 CEST 2006


Author: tismer
Date: Sat Jun 10 17:08:06 2006
New Revision: 28628

Modified:
   pypy/dist/pypy/module/stackless/test/slp_test_pickle.py
Log:
making this test theoretically run on top of CPython. Doesn't
work right now, but then it can be renamed to a normal test.
Probably the unpickling would be disabled depending on we_are_translated()

Modified: pypy/dist/pypy/module/stackless/test/slp_test_pickle.py
==============================================================================
--- pypy/dist/pypy/module/stackless/test/slp_test_pickle.py	(original)
+++ pypy/dist/pypy/module/stackless/test/slp_test_pickle.py	Sat Jun 10 17:08:06 2006
@@ -1,11 +1,17 @@
+from pypy.conftest import gettestobjspace
+
 # app-level testing of coroutine pickling
-import stackless
 
-class TestPickle:
+class AppTest_Pickle:
+
+    def setup_class(cls):
+        space = gettestobjspace(usemodules=('stackless',))
+        cls.space = space
 
     def test_simple_ish(self):
 
         output = []
+        import stackless
         def f(coro, n, x):
             if n == 0:
                 coro.switch()



More information about the Pypy-commit mailing list