Skip to content

Commit 71fca97

Browse files
committed
Add regression test for #1349
1 parent 0d30d10 commit 71fca97

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

IPython/kernel/tests/test_message_spec.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,15 @@ def test_kernel_info_request():
406406
validate_message(reply, 'kernel_info_reply', msg_id)
407407

408408

409+
def test_single_payload():
410+
flush_channels()
411+
msg_id, reply = execute(code="for i in range(3):\n"+
412+
" x=range?\n")
413+
payload = reply['payload']
414+
next_input_pls = [pl for pl in payload if pl["source"] == "set_next_input"]
415+
nt.assert_equal(len(next_input_pls), 1)
416+
417+
409418
# IOPub channel
410419

411420

0 commit comments

Comments
 (0)