:right-sidebar: True TestTrapFlags =================================================================== .. currentmodule:: gi.repository.GLib .. deprecated:: 2.38 :obj:`~gi.repository.GLib.TestTrapFlags` is used only with :func:`~gi.repository.GLib.test_trap_fork`, which is deprecated. :func:`~gi.repository.GLib.test_trap_subprocess` uses :obj:`~gi.repository.GLib.TestSubprocessFlags`. .. class:: TestTrapFlags :no-contents-entry: Test traps are guards around forked tests. These flags determine what traps to set. Fields ------ .. rst-class:: interim-class .. class:: TestTrapFlags :no-index: .. attribute:: DEFAULT Default behaviour. Since: 2.74 .. attribute:: INHERIT_STDIN If this flag is given, stdin of the child process is shared with stdin of its parent process. It is redirected to ``/dev/null`` otherwise. .. attribute:: SILENCE_STDERR Redirect stderr of the test child to ``/dev/null`` so it cannot be observed on the console during test runs. The actual output is still captured though to allow later tests with :func:`~gi.repository.GLib.test_trap_assert_stderr`. .. attribute:: SILENCE_STDOUT Redirect stdout of the test child to ``/dev/null`` so it cannot be observed on the console during test runs. The actual output is still captured though to allow later tests with :func:`~gi.repository.GLib.test_trap_assert_stdout`.