[pypy-svn] r30121 - in pypy/dist/pypy/module/_stackless: . test

auc at codespeak.net auc at codespeak.net
Mon Jul 17 15:02:47 CEST 2006


Author: auc
Date: Mon Jul 17 15:02:42 2006
New Revision: 30121

Modified:
   pypy/dist/pypy/module/_stackless/interp_clonable.py
   pypy/dist/pypy/module/_stackless/test/test_choicepoint.py
Log:
help some tests pass again

Modified: pypy/dist/pypy/module/_stackless/interp_clonable.py
==============================================================================
--- pypy/dist/pypy/module/_stackless/interp_clonable.py	(original)
+++ pypy/dist/pypy/module/_stackless/interp_clonable.py	Mon Jul 17 15:02:42 2006
@@ -8,12 +8,14 @@
     def hello(self):
         if we_are_translated():
             self.saved_pool = gc_swap_pool(self.local_pool)
-        AppCoroutine.hello(self)
+        else:
+            AppCoroutine.hello(self)
 
     def goodbye(self):
         if we_are_translated():
             self.local_pool = gc_swap_pool(self.saved_pool)
-        AppCoroutine.goodbye(self)
+        else:
+            AppCoroutine.goodbye(self)
 
     def clone(self):
         if not we_are_translated():

Modified: pypy/dist/pypy/module/_stackless/test/test_choicepoint.py
==============================================================================
--- pypy/dist/pypy/module/_stackless/test/test_choicepoint.py	(original)
+++ pypy/dist/pypy/module/_stackless/test/test_choicepoint.py	Mon Jul 17 15:02:42 2006
@@ -1,5 +1,5 @@
 from pypy.module._stackless.interp_coroutine import AbstractThunk
-from pypy.module._stackless.interp_clonable import ClonableCoroutine
+from pypy.module._stackless.interp_clonable import InterpClonableCoroutine as ClonableCoroutine
 
 class ChoicePointHolder(object):
     def __init__(self):



More information about the Pypy-commit mailing list