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

Function test_display_available

tests/test_display_2.py:276–292  ·  view source on GitHub ↗

Test that display is available without import We don't really care if it's in builtin or anything else, but it should always be available.

()

Source from the content-addressed store, hash-verified

274
275
276def test_display_available():
277 """
278 Test that display is available without import
279
280 We don't really care if it's in builtin or anything else, but it should
281 always be available.
282 """
283 ip = get_ipython()
284 with AssertNotPrints("NameError"):
285 ip.run_cell("display")
286 try:
287 ip.run_cell("del display")
288 except NameError:
289 pass # it's ok, it might be in builtins
290 # even if deleted it should be back
291 with AssertNotPrints("NameError"):
292 ip.run_cell("display")
293
294
295def test_textdisplayobj_pretty_repr():

Callers

nothing calls this directly

Calls 3

get_ipythonFunction · 0.90
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…