[pypy-svn] r28975 - pypy/dist/pypy/translator/stackless/test

arigo at codespeak.net arigo at codespeak.net
Tue Jun 20 11:22:18 CEST 2006


Author: arigo
Date: Tue Jun 20 11:22:17 2006
New Revision: 28975

Modified:
   pypy/dist/pypy/translator/stackless/test/test_coroutine_reconstruction.py
Log:
More import fixes.


Modified: pypy/dist/pypy/translator/stackless/test/test_coroutine_reconstruction.py
==============================================================================
--- pypy/dist/pypy/translator/stackless/test/test_coroutine_reconstruction.py	(original)
+++ pypy/dist/pypy/translator/stackless/test/test_coroutine_reconstruction.py	Tue Jun 20 11:22:17 2006
@@ -8,7 +8,7 @@
 class TestCoroutineReconstruction:
 
     def setup_meth(self):
-        interp_coroutine.main_costate_getter.costate = None
+        interp_coroutine.syncstate.reset()
 
     def test_simple_ish(self):
 
@@ -41,7 +41,7 @@
             new_thunk_f = T(main_coro, 5, 1)
             new_coro.bind(new_thunk_f)
 
-            costate = interp_coroutine.main_costate_getter._get_default_costate()
+            costate = interp_coroutine.Coroutine._get_default_costate()
             bottom = resume_state_create(None, "yield_current_frame_to_caller_1")
             _bind_frame = resume_state_create(bottom, "coroutine__bind", new_coro, costate)
             f_frame_1 = resume_state_create(_bind_frame, "f_1", main_coro, 5, 1)



More information about the Pypy-commit mailing list