File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -313,14 +313,13 @@ def test_silent_flag_in_subshells():
313313 while True :
314314 try :
315315 msg = kc .get_iopub_msg (timeout = 0.2 )
316- if msg ["header" ]["msg_type" ] == "status" :
317- if msg ["parent_header" ].get ("msg_id" ) == msg_silent ["header" ]["msg_id" ]:
318- continue
319- # Any other message related to the silent request is a failure
320- if msg ["parent_header" ].get ("msg_id" ) == msg_silent ["header" ]["msg_id" ]:
321- pytest .fail (
322- "Silent execution in concurrent setting produced unexpected IOPub message"
323- )
316+ if (
317+ msg ["header" ]["msg_type" ] == "status"
318+ and msg ["parent_header" ].get ("msg_id" ) == msg_silent ["header" ]["msg_id" ]
319+ ):
320+ continue
321+ if msg ['parent_header' ].get ('msg_id' ) == msg_silent ['header' ]['msg_id' ]:
322+ pytest .fail ("Silent execution in concurrent setting produced unexpected IOPub message" )
324323 except Empty :
325324 break
326325 finally :
You can’t perform that action at this time.
0 commit comments