Commit 78f49c5d authored by Denis Bilenko's avatar Denis Bilenko

test__exc_info.py: do not rely on '_hub' attribute of TestCase

parent 0b7909f0
...@@ -46,7 +46,7 @@ class Test(greentest.TestCase): ...@@ -46,7 +46,7 @@ class Test(greentest.TestCase):
assert ex is error, (ex, error) assert ex is error, (ex, error)
def test2(self): def test2(self):
timer = self._hub.loop.timer(0) timer = gevent.get_hub().loop.timer(0)
timer.start(hello2) timer.start(hello2)
gevent.sleep(0.1) gevent.sleep(0.1)
assert sys.exc_info() == (None, None, None), sys.exc_info() assert sys.exc_info() == (None, None, None), sys.exc_info()
......
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