[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 09:38:43 +0000 (UTC)
commit 2f73ea86825be8c1c92cf76d611c109c7ad797e5
Author: Benjamin Berg <bberg redhat com>
Date: Mon Nov 22 10:32:39 2021 +0100
test
tests/test_events.py | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/tests/test_events.py b/tests/test_events.py
index 329a7745..31fb8223 100644
--- a/tests/test_events.py
+++ b/tests/test_events.py
@@ -69,11 +69,15 @@ if sys.platform != 'win32':
asyncio.set_event_loop_policy(policy)
super().setUpClass()
+ print("class set up")
@classmethod
def tearDownClass(cls):
+ print("tearing down class")
asyncio.set_event_loop_policy(None)
+ print("event loop policy cleared")
super().tearDownClass()
+ print("tearing down class done")
def setUp(self):
print("running", os.environ['PYTEST_CURRENT_TEST'])
@@ -94,6 +98,8 @@ if sys.platform != 'win32':
support.gc_collect()
print("gc collected")
test_utils.TestCase.tearDown(self)
+ print("collecting GC again")
+ support.gc_collect()
print('test case tear down done')
def create_event_loop(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]