##// END OF EJS Templates
Fix bugs in completer.py with incompletely-implemented property....
Fix bugs in completer.py with incompletely-implemented property. From a docstring that ended mid-sentence, it's pretty clear that we'd forgotten to finish the implementation of the completion splitter with real properties. I have no clue how the tests were passing, as there was also a nasty bit of state mangling being done by one of the tests; finished the implementation and fixed the tests.

File last commit:

r3889:13fdc81c
r6945:b1c2e302
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