[pygobject/benzea/gio-asyncio: 2/2] asdfadsf
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/benzea/gio-asyncio: 2/2] asdfadsf
- Date: Thu, 28 Oct 2021 08:39:35 +0000 (UTC)
commit 1fcbe82c3a6b0fcffd7724c2d90b50c84755db0a
Author: Benjamin Berg <bberg redhat com>
Date: Wed Oct 27 17:39:03 2021 +0200
asdfadsf
gi/events.py | 6 +++++-
tests/meson.build | 1 +
2 files changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/gi/events.py b/gi/events.py
index d9cdc6f4..11a58f51 100644
--- a/gi/events.py
+++ b/gi/events.py
@@ -128,7 +128,7 @@ class EventLoop(asyncio.SelectorEventLoop):
self._check_closed()
# Can be useful while testing failures
- #assert sig != signal.SIGALRM
+ assert sig != signal.SIGALRM
if sig not in { signal.SIGHUP, signal.SIGINT, signal.SIGTERM, signal.SIGUSR1, signal.SIGUSR2,
signal.SIGWINCH }:
return super().add_signal_handler(sig, callback, *args)
@@ -161,9 +161,13 @@ class EventLoop(asyncio.SelectorEventLoop):
# GLib does not restore the original signal handler.
# Try to restore the python handler for SIGINT, this makes
# Ctrl+C work after the mainloop has quit.
+ print('remove_signal_handler:', sig, signal.SIGINT, _ossighelper.PyOS_getsig(signal.SIGINT))
if sig == signal.SIGINT and _ossighelper.PyOS_getsig(signal.SIGINT) == 0:
+ print('resetting lowlevel SIGINT handler')
if _ossighelper.startup_sigint_ptr > 0:
_ossighelper.PyOS_setsig(signal.SIGINT, _ossighelper.startup_sigint_ptr)
+ else:
+ print('no startup sigint ptr!')
return True
except KeyError:
diff --git a/tests/meson.build b/tests/meson.build
index 6a25688e..4747ba61 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -124,6 +124,7 @@ python_paths = [join_paths(meson.current_build_dir(), '..')]
if pycairo_dep.found() and pycairo_dep.type_name() == 'internal'
python_paths += [join_paths(meson.build_root(), 'subprojects', 'pycairo')]
endif
+envdata.append('PYGI_TEST_VERBOSE', '1')
envdata.append('PYTHONPATH', python_paths)
envdata.append('TESTS_BUILDDIR', meson.current_build_dir())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]