Projects
Eulaceura:Factory
python-urwid
_service:obs_scm:fix-test-failure-due-to-python...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:fix-test-failure-due-to-python11.patch of Package python-urwid
--- urwid-2.1.2.orig/urwid/tests/test_event_loops.py +++ urwid-2.1.2/urwid/tests/test_event_loops.py @@ -201,15 +201,14 @@ else: evl.alarm(0.5, lambda: 1 / 0) # Simulate error in event loop self.assertRaises(ZeroDivisionError, evl.run) - def test_coroutine_error(self): + async def test_coroutine_error(self): evl = self.evl - @asyncio.coroutine - def error_coro(): + async def error_coro(): result = 1 / 0 # Simulate error in coroutine yield result - asyncio.ensure_future(error_coro()) + asyncio.ensure_future(await error_coro()) self.assertRaises(ZeroDivisionError, evl.run)
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2