##// END OF EJS Templates
Major refactor of kernel connection management in the notebook....
Major refactor of kernel connection management in the notebook. * Full kernel heartbeating is working. * Connections between the notebook and server and now created a new each time there is a WebSocket connection. Each channel is also handled separately. This dramatically simplifies the server code and makes for a more scalable system.

File last commit:

r3889:13fdc81c
r4545:5bad195c
Show More
test_logger.py
19 lines | 517 B | text/x-python | PythonLexer
"""Test IPython.core.logger"""
import nose.tools as nt
_ip = get_ipython()
def test_logstart_inaccessible_file():
try:
_ip.logger.logstart(logfname="/") # Opening that filename will fail.
except IOError:
pass
else:
nt.assert_true(False) # The try block should never pass.
try:
_ip.run_cell("a=1") # Check it doesn't try to log this
finally:
_ip.logger.log_active = False # If this fails, don't let later tests fail