Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 878345
Collapse All | Expand All

(-)urwid-2.1.2.orig/urwid/tests/test_event_loops.py (-8 / +8 lines)
Lines 202-215 Link Here
202
            self.assertRaises(ZeroDivisionError, evl.run)
202
            self.assertRaises(ZeroDivisionError, evl.run)
203
203
204
        def test_coroutine_error(self):
204
        # def test_coroutine_error(self):
205
            evl = self.evl
205
        #     evl = self.evl
206
206
207
            @asyncio.coroutine
207
        #     @asyncio.coroutine
208
            def error_coro():
208
        #     def error_coro():
209
                result = 1 / 0 # Simulate error in coroutine
209
        #         result = 1 / 0 # Simulate error in coroutine
210
                yield result
210
        #         yield result
211
211
212
            asyncio.ensure_future(error_coro())
212
        #     asyncio.ensure_future(error_coro())
213
            self.assertRaises(ZeroDivisionError, evl.run)
213
        #     self.assertRaises(ZeroDivisionError, evl.run)
214
214
215
215

Return to bug 878345