##// END OF EJS Templates
Deprecate and undocument install_ext...
Deprecate and undocument install_ext It seem to me that Python packaging has come up to a point where actually telling peoples they can install python extensions not using package manager is unreasonable. Recent extension even recommend using `install_ext` as **the way** to install things, which is unsecure, confusing, and there is no update mechanisme, nor version conflict resolution.

File last commit:

r21425:d823445d
r21514:70215975
Show More
test_displayhook.py
21 lines | 638 B | text/x-python | PythonLexer
/ IPython / core / tests / test_displayhook.py
nottaanibot
Added tests for displayhook...
r21420 from IPython.testing.tools import AssertPrints, AssertNotPrints
nottaanibot
make the tests fail correctly
r21421 ip = get_ipython()
nottaanibot
Added tests for displayhook...
r21420 def test_output_displayed():
"""Checking to make sure that output is displayed"""
with AssertPrints('2'):
Matthias Bussonnier
pep8
r21425 ip.run_cell('1+1', store_history=True)
nottaanibot
Added tests for displayhook...
r21420
with AssertPrints('2'):
Matthias Bussonnier
pep8
r21425 ip.run_cell('1+1 # comment with a semicolon;', store_history=True)
nottaanibot
Added tests for displayhook...
r21420
def test_output_quiet():
"""Checking to make sure that output is quiet"""
with AssertNotPrints('2'):
Matthias Bussonnier
pep8
r21425 ip.run_cell('1+1;', store_history=True)
nottaanibot
Added tests for displayhook...
r21420
with AssertNotPrints('2'):
Matthias Bussonnier
pep8
r21425 ip.run_cell('1+1; # comment with a semicolon', store_history=True)