From 620bdb5ed90f7b343f3dd3609bc70399c4641d76 2013-09-03 18:08:06 From: Thomas Kluyver Date: 2013-09-03 18:08:06 Subject: [PATCH] Fix calls to validate_message --- diff --git a/IPython/kernel/tests/test_message_spec.py b/IPython/kernel/tests/test_message_spec.py index 4074f95..b676498 100644 --- a/IPython/kernel/tests/test_message_spec.py +++ b/IPython/kernel/tests/test_message_spec.py @@ -59,7 +59,7 @@ def flush_channels(kc=None): except Empty: break else: - list(validate_message(msg)) + validate_message(msg) def execute(code='', kc=None, **kwargs): @@ -68,14 +68,14 @@ def execute(code='', kc=None, **kwargs): kc = KC msg_id = kc.execute(code=code, **kwargs) reply = kc.get_shell_msg(timeout=TIMEOUT) - list(validate_message(reply, 'execute_reply', msg_id)) + validate_message(reply, 'execute_reply', msg_id) busy = kc.get_iopub_msg(timeout=TIMEOUT) - list(validate_message(busy, 'status', msg_id)) + validate_message(busy, 'status', msg_id) nt.assert_equal(busy['content']['execution_state'], 'busy') if not kwargs.get('silent'): pyin = kc.get_iopub_msg(timeout=TIMEOUT) - list(validate_message(pyin, 'pyin', msg_id)) + validate_message(pyin, 'pyin', msg_id) nt.assert_equal(pyin['content']['code'], code) return msg_id, reply['content']