[pygobject/benzea/gio-asyncio] fixup! fixup! events: Implement asyncio event loop based on glib
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/benzea/gio-asyncio] fixup! fixup! events: Implement asyncio event loop based on glib
- Date: Thu, 18 Nov 2021 11:14:54 +0000 (UTC)
commit 6013eea6d1ff2f9dc0d68b003e1c19de9b53653c
Author: Benjamin Berg <bberg redhat com>
Date: Thu Nov 18 12:14:49 2021 +0100
fixup! fixup! events: Implement asyncio event loop based on glib
tests/test_events.py | 10 ++++++++++
1 file changed, 10 insertions(+)
---
diff --git a/tests/test_events.py b/tests/test_events.py
index 97a14465..e4c1fc07 100644
--- a/tests/test_events.py
+++ b/tests/test_events.py
@@ -48,6 +48,16 @@ if sys.platform != 'win32':
class GLibEventLoopTests(UnixEventLoopTestsMixin, test_utils.TestCase):
+ @classmethod
+ def setUpClass(cls):
+ asyncio.set_event_loop_policy(gi.events.GLibEventLoopPolicy())
+ super().setUpClass()
+
+ @classmethod
+ def tearDownClass(cls):
+ asyncio.set_event_loop_policy(None)
+ super().tearDownClass()
+
def setUp(self):
print("running", os.environ['PYTEST_CURRENT_TEST'])
super().setUp()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]