Commit 8cb43bfb authored by Denis Bilenko's avatar Denis Bilenko

add a test that exposes exc_info being set in one greenlet is visible in another

parent 049cdf30
import gevent
import sys
def hello():
assert sys.exc_info() == (None, None, None), sys.exc_info()
error = Exception('hello')
try:
raise error
except:
gevent.spawn(hello).join()
try:
raise
except Exception, ex:
assert ex is error, (ex, error)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment