Commit 605f4594 authored by Jason Madden's avatar Jason Madden

Tweak the raising of exceptions to avoid more refs

parent e9d1959b
......@@ -122,8 +122,7 @@ class Greenlet(greenlet):
return deque()
def _raise_exception(self):
t, v, tbs = self._exc_info
reraise(t, v, load_traceback(tbs))
reraise(self._exc_info[0], self._exc_info[1], load_traceback(self._exc_info[2]))
@property
def loop(self):
......
......@@ -275,6 +275,7 @@ class TestStuff(greentest.TestCase):
self.assertRaises(ExpectedError, gevent.joinall, [x, y], raise_error=True)
self.assertRaises(ExpectedError, gevent.joinall, [y], raise_error=True)
x.join()
test_wait_error.ignore_leakcheck = True
def test_joinall_exception_order(self):
# if there're several exceptions raised, the earliest one must be raised by joinall
......@@ -288,6 +289,7 @@ class TestStuff(greentest.TestCase):
except ExpectedError as ex:
assert 'second' in str(ex), repr(str(ex))
gevent.joinall([a, b])
test_joinall_exception_order.ignore_leakcheck = True
def test_joinall_count_raise_error(self):
# When joinall is asked not to raise an error, the 'count' param still
......
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