File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -55,13 +55,11 @@ def test_qtlog_fixture(qtlog):
55
55
qDebug ('this is a DEBUG message' )
56
56
qWarning ('this is a WARNING message' )
57
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
- messages = [(int (m .msg_type ), m .msg ) for m in qtlog .messages ]
58
+ messages = [(m .msg_type , m .msg .strip ()) for m in qtlog .messages ]
61
59
assert messages == [
62
- (int ( QtDebugMsg ) , 'this is a DEBUG message ' ),
63
- (int ( QtWarningMsg ) , 'this is a WARNING message ' ),
64
- (int ( QtCriticalMsg ) , 'this is a CRITICAL message ' ),
60
+ (QtDebugMsg , 'this is a DEBUG message' ),
61
+ (QtWarningMsg , 'this is a WARNING message' ),
62
+ (QtCriticalMsg , 'this is a CRITICAL message' ),
65
63
]
66
64
# `messages` attribute is read-only
67
65
with pytest .raises (AttributeError ):
You can’t perform that action at this time.
0 commit comments