Created
August 26, 2012 14:10
-
-
Save temoto/3479912 to your computer and use it in GitHub Desktop.
gevent reraise exception
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gevent | |
#... | |
def test_reraise_01(): | |
try: | |
gevent.spawn(lambda: 1/0).join() | |
assert False, "ZeroDivisionError excepted" | |
except ZeroDivisionError: | |
pass | |
#... |
andreypopp
commented
Aug 27, 2012
why ZeroDivisionError does not raised at line 6?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment