##// END OF EJS Templates
Merge remote branch 'minrk/htmlfix' into trunk....
Merge remote branch 'minrk/htmlfix' into trunk. This branch implements a number of improvements to the HTML save capabilities of the Qt console, and received extensive reviews. A short summary follows, see the pull request page for full details, at http://github.com/ipython/ipython/pull/170. Some small issues in the HTML code I noticed when I started playing with it. * only rich backends support toHtml, so the html/xhtml exports failed * modules were imported inside functions * relpath in image_tag was determined in platform-dependent way * save dialog strictly enforced non-standard '.htm' file extension * when selecting external PNG, the _files dir was always created, regardless of whether there were any images Fixes in this commit: * export options do not appear in non-rich widgets * module imports all at the top * relpath uses platform independent os.path * dialog uses standard '.html' by default, but allows any extension * no _files dir is created if no images are to be exported Closes gh-170 (pull request).

File last commit:

r2926:2be9133b
r3177:35e407aa merge
Show More
test_message_spec.py
40 lines | 1010 B | text/x-python | PythonLexer
/ IPython / zmq / tests / test_message_spec.py
"""Test suite for our zeromq-based messaging specification.
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2010 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING.txt, distributed as part of this software.
#-----------------------------------------------------------------------------
import sys
import time
import nose.tools as nt
from ..blockingkernelmanager import BlockingKernelManager
from IPython.utils import io
def setup():
global KM
KM = BlockingKernelManager()
KM.start_kernel()
KM.start_channels()
# Give the kernel a chance to come up.
time.sleep(1)
def teardown():
io.rprint('Entering teardown...') # dbg
io.rprint('Stopping channels and kernel...') # dbg
KM.stop_channels()
KM.kill_kernel()
# Actual tests
def test_execute():
KM.xreq_channel.execute(code='x=1')
KM.xreq_channel.execute(code='print 1')