summaryrefslogtreecommitdiff
path: root/tests/unit/browser/test_history.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2019-03-13 13:53:09 +0100
committerFlorian Bruhin <me@the-compiler.org>2019-03-13 13:53:09 +0100
commit33463325f46f4f770fa9b7ea0e5c38f6569a8f21 (patch)
tree092c6a4e70c4a58eac42a5665c7357579e06dae4 /tests/unit/browser/test_history.py
parent068168f351b510725112bd8136d22fcfff41ea15 (diff)
downloadqutebrowser-33463325f46f4f770fa9b7ea0e5c38f6569a8f21.tar.gz
qutebrowser-33463325f46f4f770fa9b7ea0e5c38f6569a8f21.zip
Eschew the extraneous elses
https://www.youtube.com/watch?v=JVVMMULwR4s&t=289
Diffstat (limited to 'tests/unit/browser/test_history.py')
-rw-r--r--tests/unit/browser/test_history.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/unit/browser/test_history.py b/tests/unit/browser/test_history.py
index 3d0f9f0bf..95edb5d41 100644
--- a/tests/unit/browser/test_history.py
+++ b/tests/unit/browser/test_history.py
@@ -190,8 +190,7 @@ class TestAdd:
def raise_error(url, replace=False):
if environmental:
raise sql.SqlEnvironmentError("Error message")
- else:
- raise sql.SqlBugError("Error message")
+ raise sql.SqlBugError("Error message")
if completion:
monkeypatch.setattr(web_history.completion, 'insert', raise_error)