We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ebf18f commit 465cbf2Copy full SHA for 465cbf2
pytestqt/_tests/test_logging.py
@@ -57,10 +57,11 @@ def test_qtlog_fixture(qtlog):
57
qCritical('this is a CRITICAL message')
58
# note that in the messages below, we have an extra space at the end
59
# added by Qt
60
- assert qtlog.messages == [
61
- (QtDebugMsg, 'this is a DEBUG message '),
62
- (QtWarningMsg, 'this is a WARNING message '),
63
- (QtCriticalMsg, 'this is a CRITICAL message '),
+ messages = [(int(m.msg_type), m.msg) for m in qtlog.messages]
+ assert messages == [
+ (int(QtDebugMsg), 'this is a DEBUG message '),
+ (int(QtWarningMsg), 'this is a WARNING message '),
64
+ (int(QtCriticalMsg), 'this is a CRITICAL message '),
65
]
66
# `messages` attribute is read-only
67
with pytest.raises(AttributeError):
0 commit comments