[pygobject/benzea/gio-asyncio] kill with SIGINT
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/benzea/gio-asyncio] kill with SIGINT
- Date: Mon, 22 Nov 2021 16:53:39 +0000 (UTC)
commit 9606769138f85865b4c9b3482ab328520de4545c
Author: Benjamin Berg <bberg redhat com>
Date: Mon Nov 22 17:53:30 2021 +0100
kill with SIGINT
tests/test_events.py | 11 +++++++++++
1 file changed, 11 insertions(+)
---
diff --git a/tests/test_events.py b/tests/test_events.py
index 10c851b7..ecb0a5d3 100644
--- a/tests/test_events.py
+++ b/tests/test_events.py
@@ -135,6 +135,17 @@ if sys.platform != 'win32':
def test_run_until_complete(self):
print("noped out run-until-complete")
+
+ import os
+ import time
+ import sys
+ parent = os.getpid()
+ p = os.fork()
+ if p == 0:
+ time.sleep(2)
+ os.kill(parent, signal.SIGINT)
+ sys.exit(0)
+
return
t0 = self.loop.time()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]