[pygobject/benzea/gio-asyncio] test
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/benzea/gio-asyncio] test
- Date: Mon, 22 Nov 2021 16:20:55 +0000 (UTC)
commit 807e2b7497045af22cc43329fbc6455c80ce6407
Author: Benjamin Berg <bberg redhat com>
Date: Mon Nov 22 16:58:27 2021 +0100
test
gi/events.py | 1 +
tests/test_events.py | 2 ++
2 files changed, 3 insertions(+)
---
diff --git a/gi/events.py b/gi/events.py
index 78b96fba..45c142fa 100644
--- a/gi/events.py
+++ b/gi/events.py
@@ -137,6 +137,7 @@ class GLibEventLoop(asyncio.SelectorEventLoop):
def __del__(self, *args):
print("deleting", self, args)
super().__del__(*args)
+ print("deleted")
if sys.platform != "win32":
def add_signal_handler(self, sig, callback, *args):
diff --git a/tests/test_events.py b/tests/test_events.py
index bc080aa7..d058535e 100644
--- a/tests/test_events.py
+++ b/tests/test_events.py
@@ -103,6 +103,8 @@ if sys.platform != 'win32':
support.gc_collect()
print("gc collected")
test_utils.TestCase.tearDown(self)
+ print("deleting loop")
+ self.loop = None
print("collecting GC again")
support.gc_collect()
print('test case tear down done')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]