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:
Florian Bruhin 2025-06-06 10:53:38 +02:00 committed by Chad Kouse
parent a473c2ede6
commit 7d8db0eb30
No known key found for this signature in database
GPG Key ID: 2BBC602A2578C7A2
1 changed files with 2 additions and 2 deletions

View File

@ -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):