diff options
author | toofar <toofar@spalge.com> | 2024-02-25 15:38:10 +1300 |
---|---|---|
committer | toofar <toofar@spalge.com> | 2024-02-25 15:56:34 +1300 |
commit | 145bfe4de0802e7eb21ef902e8e53544e996d3a4 (patch) | |
tree | 3d70b63ad55d025156c311ca341542905d65e044 /tests | |
parent | 6050017809a2980934e626a6da5418b07838478a (diff) | |
download | qutebrowser-145bfe4de0802e7eb21ef902e8e53544e996d3a4.tar.gz qutebrowser-145bfe4de0802e7eb21ef902e8e53544e996d3a4.zip |
windows doesn't support SIGHUP
It gives an AttributeError for both signal.SIGHUP and
signal.Signals.SIGHUP. The Signals Enum is set up so you can use the
strings to key into it though, so that's nice. I was tempted to use a
walrus operator here but I think that's python 310 and I don't remember
what our minimum supported version is.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/misc/test_crashsignal.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit/misc/test_crashsignal.py b/tests/unit/misc/test_crashsignal.py index e4570420e..7019118e5 100644 --- a/tests/unit/misc/test_crashsignal.py +++ b/tests/unit/misc/test_crashsignal.py @@ -80,12 +80,14 @@ def test_interrupt_repeatedly(signal_handler): expected(test_signal, None) +@pytest.mark.posix def test_reload_config_call_on_hup(signal_handler, read_config_mock): signal_handler._handlers[signal.SIGHUP](None, None) read_config_mock.assert_called_once_with("config.py-unittest") +@pytest.mark.posix def test_reload_config_displays_errors(signal_handler, read_config_mock, mocker): read_config_mock.side_effect = configexc.ConfigFileErrors( "config.py", |