diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-01-27 20:49:18 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-01-27 20:49:18 +0000 |
commit | c5ee568457ac776b65b71fa444e0dd47535bc44a (patch) | |
tree | 1aa40f593e598d7c8352c1d99a30ff9315e690af /dev-python/urwid/files/urwid-2.1.2-fix-py3.11.patch | |
parent | 8eccda982236f2cfe9188bdcaffd9168134f39a9 (diff) |
gentoo auto-resync : 27:01:2023 - 20:49:18
Diffstat (limited to 'dev-python/urwid/files/urwid-2.1.2-fix-py3.11.patch')
-rw-r--r-- | dev-python/urwid/files/urwid-2.1.2-fix-py3.11.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/dev-python/urwid/files/urwid-2.1.2-fix-py3.11.patch b/dev-python/urwid/files/urwid-2.1.2-fix-py3.11.patch new file mode 100644 index 000000000000..dd60b8a220b9 --- /dev/null +++ b/dev-python/urwid/files/urwid-2.1.2-fix-py3.11.patch @@ -0,0 +1,26 @@ +https://github.com/urwid/urwid/pull/517 +From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= <mail@dotlambda.de> +Date: Fri, 20 Jan 2023 11:37:15 -0800 +Subject: [PATCH] make tests compatible with Python 3.11 + +--- a/urwid/tests/test_event_loops.py ++++ b/urwid/tests/test_event_loops.py +@@ -201,15 +201,14 @@ def test_error(self): + 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) + + |