MCPcopy Index your code
hub / github.com/ipython/ipython / test_output_quiet

Function test_output_quiet

tests/test_displayhook.py:20–30  ·  view source on GitHub ↗

Checking to make sure that output is quiet

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

AssertNotPrintsClass · 0.90
run_cellMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…