[pygobject/benzea/ci-test] fixup! events: Implement asyncio event loop based on glib




commit b8cd5df592dd21af1054624ea6cd6411eeb5b52b
Author: Benjamin Berg <bberg redhat com>
Date:   Tue Dec 28 14:51:29 2021 +0100

    fixup! events: Implement asyncio event loop based on glib

 tests/test_events.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/test_events.py b/tests/test_events.py
index bc23fff4..5c9e5889 100644
--- a/tests/test_events.py
+++ b/tests/test_events.py
@@ -20,8 +20,6 @@ except:
     from unittest import TestCase
 
 import sys
-import gi
-import gi.events
 import asyncio
 import threading
 from gi.repository import GLib, Gtk
@@ -29,6 +27,8 @@ from gi.repository import GLib, Gtk
 
 # None of this currently works on Windows
 if sys.platform != 'win32':
+    import gi
+    import gi.events
 
     class GLibEventLoopTests(UnixEventLoopTestsMixin, TestCase):
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]