diff --git a/IPython/kernel/tests/utils.py b/IPython/kernel/tests/utils.py index aea0ce8..affda47 100644 --- a/IPython/kernel/tests/utils.py +++ b/IPython/kernel/tests/utils.py @@ -14,9 +14,10 @@ import atexit from contextlib import contextmanager -from subprocess import PIPE +from subprocess import PIPE, STDOUT from Queue import Empty +import nose import nose.tools as nt from IPython.kernel import KernelManager @@ -39,10 +40,12 @@ KC = None def start_new_kernel(argv=None): """start a new kernel, and return its Manager and Client""" km = KernelManager() - kwargs = dict(stdout=PIPE, stderr=PIPE) + kwargs = dict(stdout=PIPE, stderr=STDOUT) if argv: kwargs['extra_arguments'] = argv km.start_kernel(**kwargs) + nose.ipy_stream_capturer.add_stream(km.kernel.stdout.fileno()) + nose.ipy_stream_capturer.ensure_started() kc = km.client() kc.start_channels()