##// END OF EJS Templates
split shell.system into shell.system_raw/system_piped...
split shell.system into shell.system_raw/system_piped system_raw calls os.system, system_piped uses pexpect/utils.platform magic use system_raw in Terminal except on Windows and in tests use system_piped elsewhere closes gh-297 closes gh-457

File last commit:

r3889:13fdc81c
r3909:bdb012ce
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