From c6d6492230477224ee7e61bfee8741de58e28482 2013-07-16 22:01:16 From: Min RK Date: 2013-07-16 22:01:16 Subject: [PATCH] Merge pull request #3641 from minrk/travisempty increase patience for slow kernel startup in tests --- diff --git a/IPython/kernel/tests/test_message_spec.py b/IPython/kernel/tests/test_message_spec.py index 3dbc6d8..ffb7524 100644 --- a/IPython/kernel/tests/test_message_spec.py +++ b/IPython/kernel/tests/test_message_spec.py @@ -32,6 +32,10 @@ def setup(): KC.start_channels() # wait for kernel to be ready + try: + msg = KC.iopub_channel.get_msg(block=True, timeout=10) + except Empty: + pass KC.execute("pass") KC.get_shell_msg(block=True, timeout=5) flush_channels()