Commit 5db5cd5c authored by Denis Bilenko's avatar Denis Bilenko

update test__greenlet.py with regard to latest changes

parent 4b5ecfe0
......@@ -245,7 +245,8 @@ class TestReturn_link(LinksTestCase):
link_method = 'link'
def cleanup(self):
self.p._links.clear()
while self.p._links:
self.p._links.pop()
def test_return(self):
self.p = gevent.spawn(return25)
......@@ -253,7 +254,7 @@ class TestReturn_link(LinksTestCase):
# repeating the same with dead process
for _ in xrange(3):
self._test_return(self.p, False, 25, greenlet.LinkedCompleted, sleep0)
self.p._links.clear()
self.cleanup()
self.p.kill()
def _test_return(self, p, first_time, result, kill_exc_type, action):
......
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