Rename TestError to Error.

This commit is contained in:
Florian Bruhin 2015-09-06 16:43:23 +02:00
parent bf9a897ce8
commit 02a539f2d7

View File

@ -34,7 +34,7 @@ from PyQt5.QtWidgets import QMessageBox
Args = collections.namedtuple('Args', 'no_err_windows')
class TestError(Exception):
class Error(Exception):
pass
@ -45,7 +45,7 @@ class TestError(Exception):
(ValueError, 'ValueError', 'none'),
# "qutebrowser." stripped
(ipc.Error, 'misc.ipc.Error', 'none'),
(TestError, 'test_error.TestError', 'none'),
(Error, 'test_error.Error', 'none'),
])
def test_no_err_windows(caplog, exc, name, exc_text):
"""Test handle_fatal_exc with no_err_windows = True."""