File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,9 @@ def test_logging_fails_ignore(testdir):
186
186
"""
187
187
[pytest]
188
188
qt_log_level_fail = CRITICAL
189
- qt_log_ignore = WM_DESTROY.*sent
189
+ qt_log_ignore =
190
+ WM_DESTROY.*sent
191
+ WM_PAINT not handled
190
192
"""
191
193
)
192
194
testdir .makepyfile (
@@ -202,7 +204,7 @@ def test3():
202
204
qCritical('WM_DESTROY was sent')
203
205
assert 0
204
206
def test4():
205
- qCritical('WM_DESTROY was sent ')
207
+ qCritical('WM_PAINT not handled ')
206
208
qCritical('another critical message')
207
209
"""
208
210
)
@@ -225,7 +227,7 @@ def test4():
225
227
# test4 fails because one message is ignored but the other isn't
226
228
'*_ test4 _*' ,
227
229
'*Failure: Qt messages with level CRITICAL or above emitted*' ,
228
- '*QtCriticalMsg: WM_DESTROY was sent *(IGNORED)*' ,
230
+ '*QtCriticalMsg: WM_PAINT not handled *(IGNORED)*' ,
229
231
'*QtCriticalMsg: another critical message*' ,
230
232
231
233
# summary
You can’t perform that action at this time.
0 commit comments