diff options
author | toofar <toofar@spalge.com> | 2023-02-06 18:53:56 +1300 |
---|---|---|
committer | toofar <toofar@spalge.com> | 2023-02-06 18:53:56 +1300 |
commit | ff8dbc45805013b5a119a0d6b2c943308faeca8e (patch) | |
tree | c3c3d2337d797267b2c248dbbfae85c24adfbb1c /tests/unit/browser/test_history.py | |
parent | 7dacc89d2ad4cf31010f69e2a40847d7a2b34fc4 (diff) | |
download | qutebrowser-ff8dbc45805013b5a119a0d6b2c943308faeca8e.tar.gz qutebrowser-ff8dbc45805013b5a119a0d6b2c943308faeca8e.zip |
lint: broad-exception-raised
Mostly pretty lazy fixes. Most of the places in the tests we were
already matching on error message, a couple of places we weren't. The
tick-tock one was the only one that wasn't being used right where it was
raised.
Some of them I just changed to RuntimeError because it was shorter than
adding the pylint directive.
Diffstat (limited to 'tests/unit/browser/test_history.py')
-rw-r--r-- | tests/unit/browser/test_history.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/browser/test_history.py b/tests/unit/browser/test_history.py index 51a9effb8..268f21a08 100644 --- a/tests/unit/browser/test_history.py +++ b/tests/unit/browser/test_history.py @@ -471,7 +471,7 @@ class TestRebuild: # Trigger a completion rebuild monkeypatch.setattr(web_history.database, 'user_version_changed', lambda: True) - with pytest.raises(Exception, match='tick-tock'): + with pytest.raises(stubs.FakeHistoryTick, match='tick-tock'): history.WebHistory(web_history.database, progress=progress) assert web_history.metainfo['force_rebuild'] |