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

pedronis at codespeak.net pedronis at codespeak.net
Mon Jun 12 14:07:05 CEST 2006


Author: pedronis
Date: Mon Jun 12 14:07:04 2006
New Revision: 28706

Modified:
   pypy/dist/pypy/module/stackless/test/test_coroutine.py
Log:
in this form the test pass, tracking the indentation oddities with another test



Modified: pypy/dist/pypy/module/stackless/test/test_coroutine.py
==============================================================================
--- pypy/dist/pypy/module/stackless/test/test_coroutine.py	(original)
+++ pypy/dist/pypy/module/stackless/test/test_coroutine.py	Mon Jun 12 14:07:04 2006
@@ -26,9 +26,8 @@
         co2 = pickle.loads(pckl)
     
     def test_pickle_coroutine_frame(self):
-        skip('passes in interactive interpreter but not here :/')
+        #skip('passes in interactive interpreter but not here :/')
         # this requires py.magic.greenlet!
-        del self # don't look
         import pickle, sys, new
         mod = new.module('mod')
         try: 
@@ -37,19 +36,17 @@
 import sys, stackless
 
 def f():
-    global the_frame
-    the_frame = sys._getframe()
-    main_coro.switch()
+        global the_frame
+        the_frame = sys._getframe()
+        main_coro.switch()
 
 co = stackless.coroutine()
 main_coro = stackless.coroutine.getcurrent()
-co.bind(mod.f)
+co.bind(f)
 co.switch()
 ''' in mod.__dict__
             pckl = pickle.dumps(mod.the_frame)
             #co2 = pickle.loads(pckl)
         finally:
             del sys.modules['mod']
-        
-
-    
+                



More information about the Pypy-commit mailing list