diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-03-15 15:59:59 +0100 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-03-15 16:00:20 +0100 |
commit | 8e80469a008fb1da5a667203362f9881005f9229 (patch) | |
tree | d182e68829e1102afda08d5c2c303699d285e07e /tests/test_mainloop.py | |
parent | 37c1912658c91788c0e3ef221667efba00aed0b4 (diff) | |
download | pygobject-8e80469a008fb1da5a667203362f9881005f9229.tar.gz |
setup.py: add option to run under gdb
setup.py test --gdb
Also sets an env var so we can disable one test which uses
SIGINT on the test process, which makes gdb break.
Diffstat (limited to 'tests/test_mainloop.py')
-rw-r--r-- | tests/test_mainloop.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_mainloop.py b/tests/test_mainloop.py index 2d9fbd57..40a8b97b 100644 --- a/tests/test_mainloop.py +++ b/tests/test_mainloop.py @@ -44,6 +44,7 @@ class TestMainLoop(unittest.TestCase): assert exc[0].value.args[0] == "deadbabe" @unittest.skipUnless(hasattr(os, "fork"), "no os.fork available") + @unittest.skipIf(os.environ.get("PYGI_TEST_GDB"), "SIGINT stops gdb") def test_sigint(self): r, w = os.pipe() pid = os.fork() |