From ecd438130638c5e5bcc96f0013fc86ddfa358bc6 2015-06-03 18:24:40 From: nottaanibot <nottaanibot@gmail.com> Date: 2015-06-03 18:24:40 Subject: [PATCH] make the tests fail correctly --- diff --git a/IPython/core/tests/test_displayhook.py b/IPython/core/tests/test_displayhook.py index bae37c1..d94c936 100644 --- a/IPython/core/tests/test_displayhook.py +++ b/IPython/core/tests/test_displayhook.py @@ -1,19 +1,21 @@ from IPython.testing.tools import AssertPrints, AssertNotPrints +ip = get_ipython() + def test_output_displayed(): """Checking to make sure that output is displayed""" with AssertPrints('2'): - ip.run_cell('1+1') + ip.run_cell('1+1',store_history=True) with AssertPrints('2'): - ip.run_cell('1+1 # comment with a semicolon;') + ip.run_cell('1+1 # comment with a semicolon;',store_history=True) def test_output_quiet(): """Checking to make sure that output is quiet""" with AssertNotPrints('2'): - ip.run_cell('1+1;') + ip.run_cell('1+1;',store_history=True) with AssertNotPrints('2'): - ip.run_cell('1+1; # comment with a semicolon') + ip.run_cell('1+1; # comment with a semicolon',store_history=True)