Don't use @pyqtSlot for MessageMock
This commit is contained in:
parent
fce9783570
commit
43a5c46d82
@ -23,7 +23,6 @@ import logging
|
|||||||
import collections
|
import collections
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from PyQt5.QtCore import pyqtSlot
|
|
||||||
|
|
||||||
from qutebrowser.utils import usertypes, message
|
from qutebrowser.utils import usertypes, message
|
||||||
|
|
||||||
@ -43,7 +42,6 @@ class MessageMock:
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.messages = []
|
self.messages = []
|
||||||
|
|
||||||
@pyqtSlot(usertypes.MessageLevel, str)
|
|
||||||
def _record_message(self, level, text):
|
def _record_message(self, level, text):
|
||||||
log_levels = {
|
log_levels = {
|
||||||
usertypes.MessageLevel.error: logging.ERROR,
|
usertypes.MessageLevel.error: logging.ERROR,
|
||||||
|
Loading…
Reference in New Issue
Block a user