Commit 351f0c75 authored by Denis Bilenko's avatar Denis Bilenko

greentest.py: simplify code

parent fac6c9e7
......@@ -235,10 +235,7 @@ class TestCase(BaseTestCase):
def _store_error(self, where, type, value, tb):
del tb
if self._error != self._none:
if self._hub is gevent.getcurrent():
self._hub.parent.throw(type, value)
else:
self._hub.loop.run_callback(self._hub.parent.throw, type, value)
self._hub.parent.throw(type, value)
else:
self._error = (where, type, value)
......
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