tests: Correctly deactivate SignalHandler after tests
Otherwise, the python_hacks timer might continue running
and affects test_early_timeout_check, similiarly to what was fixed in
74c7ff2641.
This commit is contained in:
parent
7b388017c3
commit
959dc5a9e5
|
|
@ -37,8 +37,8 @@ def signal_handler(qtbot, mocker, read_config_mock):
|
|||
app=mocker.Mock(spec=QApplication),
|
||||
quitter=mocker.Mock(spec=quitter.Quitter),
|
||||
)
|
||||
|
||||
return signal_handler
|
||||
yield signal_handler
|
||||
signal_handler.deactivate()
|
||||
|
||||
|
||||
def test_handlers_registered(signal_handler):
|
||||
|
|
|
|||
Loading…
Reference in New Issue