Skip to content

Commit b41c179

Browse files
authored
linter complaint resolved
1 parent a140e28 commit b41c179

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

tests/test_subshells.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)