qutebrowser/tests/unit/browser
Florian Bruhin 74c7ff2641 tests: Properly delete webengine DownloadManager objects
We create the DownloadManager with parent=qapp, which means they will stick
around forever after the test finished.

While we disconnect the QWebEngineProfile::downloadRequested() signal,
we keep the DownloadManager around, which also keeps around its download-update
timers.

Those will then result in tests/unit/utils/usertypes/test_timer.py::test_early_timeout_check
being flaky, as their _validity_check_handler slot keeps getting called in the
background. Due to the globally mocked time.monotonic(), this results in
nonsensical error messages such as:

    Got logging message on logger misc with level WARNING:
    Timer download-update (id ...) triggered too early:
    interval 500 but only -1023.269s passed!

After this change, we now clean up those objects properly, thus fixing the
flakiness.

See #5390.
2025-05-07 14:06:03 +02:00
..
webengine tests: Properly delete webengine DownloadManager objects 2025-05-07 14:06:03 +02:00
webkit Use builtin list/dict/set/... types for annotations 2024-10-15 11:54:49 +02:00
test_browsertab.py reuse: Fix more copyright headers 2023-07-23 12:56:13 +02:00
test_caret.py Fix caret tests on Qt 6 and Windows 2024-03-27 19:49:09 +01:00
test_downloads.py tests: Make sure we don't leave stale download managers behind 2025-04-12 21:16:30 +02:00
test_downloadview.py reuse: Fix more copyright headers 2023-07-23 12:56:13 +02:00
test_hints.py reuse: Initial copyright text update for myself 2023-07-23 12:49:05 +02:00
test_history.py Fix some typos 2024-07-02 13:40:15 +02:00
test_inspector.py reuse: Initial copyright text update for myself 2023-07-23 12:49:05 +02:00
test_navigate.py reuse: Initial copyright text update for myself 2023-07-23 12:49:05 +02:00
test_notification.py Use builtin list/dict/set/... types for annotations 2024-10-15 11:54:49 +02:00
test_pdfjs.py pdfjs: Add new no-system-pdfjs debug flag 2025-03-21 10:42:17 +01:00
test_qutescheme.py reuse: Replace last copyright texts 2023-07-23 12:59:11 +02:00
test_shared.py Also handle QtWebKit Accept-Language correctly 2024-11-27 18:10:00 +01:00
test_signalfilter.py reuse: Initial copyright text update for myself 2023-07-23 12:49:05 +02:00
test_urlmarks.py reuse: Update remaining copyright texts 2023-07-23 12:52:01 +02:00