blockOn.eb fails in greenlet.throw

Bug #326242 reported by burris
2
Affects Status Importance Assigned to Milestone
Corotwine
New
Undecided
Unassigned

Bug Description

Running unit tests on Ubuntu-8.41 python 2.5.2-11, python-codespeak from repository. test_defer.BlockOnTests.test_errback fails, the exception doesn't get appended to events. changing the code of blockOn.eb to look like this, which is code from the docs for greenlet.throw, makes the test pass, which makes me believe that greenlet.throw is messed up

 def eb(failure):
        if greenlet.getcurrent() is current:
            synchronous.append(failure)
        else: # Oh crap, this else is untested!
            #failure.throwExceptionIntoGenerator(current)
            def raiser():
                raise failure.type, failure.value, failure.tb
            g_raiser = greenlet(raiser, parent=current)
            g_raiser.switch()

Revision history for this message
Christopher Armstrong (radix) wrote :

This test is passing for me, and I think the only difference in our environments is that I'm running the version of the py lib that's packaged in Ubuntu. I'm guessing something changed in trunk.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.