Commits

Armin Rigo committed 679cf08

Attempt to fix the test on pypy-c-stackless.

Comments (0)

Files changed (1)

pypy/module/_stackless/test/test_composable_coroutine.py

         space = gettestobjspace(usemodules=('_stackless',))
         cls.space = space
 
-        cls.w_generator = space.appexec([], """():
+        cls.w_generator_ = space.appexec([], """():
             import _stackless
 
             generators_costate = _stackless.usercostate()
 
             generator.Yield = Yield
             generator._costate = generators_costate
-            return generator
+            return (generator,)
         """)
 
     def test_simple_costate(self):
         assert result == [co]
 
     def test_generator(self):
-        generator = self.generator
+        generator, = self.generator_
 
         def squares(n):
             for i in range(n):
         """
 
         import _stackless
-        generator = self.generator
+        generator, = self.generator_
 
         # you can see how it fails if we don't have two different costates
         # by setting compute_costate to generator._costate instead