Commit 34cdf137 authored by Denis Bilenko's avatar Denis Bilenko

test__hub.py: use ExpectedException instead of ZeroDivisionError

parent 8259cf26
......@@ -71,7 +71,7 @@ class TestExceptionInMainloop(greentest.TestCase):
assert delay >= DELAY*0.9, 'sleep returned after %s seconds (was scheduled for %s)' % (delay, DELAY)
def fail():
1/0
raise greentest.ExpectedException('TestExceptionInMainloop.test_sleep/fail')
core.timer(0, fail)
......
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