MCPcopy Create free account
hub / github.com/ipython/ipython / test_output_quiet

Function test_output_quiet

IPython/core/tests/test_displayhook.py:19–29  ·  view source on GitHub ↗

Checking to make sure that output is quiet

()

Source from the content-addressed store, hash-verified

17
18
19def test_output_quiet():
20 """Checking to make sure that output is quiet"""
21
22 with AssertNotPrints('2'):
23 ip.run_cell('1+1;', store_history=True)
24
25 with AssertNotPrints('2'):
26 ip.run_cell('1+1; # comment with a semicolon', store_history=True)
27
28 with AssertNotPrints('2'):
29 ip.run_cell('1+1;\n#commented_out_function()', store_history=True)
30
31def test_underscore_no_overrite_user():
32 ip.run_cell('_ = 42', store_history=True)

Callers

nothing calls this directly

Calls 2

AssertNotPrintsClass · 0.90
run_cellMethod · 0.45

Tested by

no test coverage detected