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

Function test_extension_builtins

tests/test_extension.py:78–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76
77
78def test_extension_builtins():
79 em = get_ipython().extension_manager
80 with TemporaryDirectory() as td:
81 ext3 = os.path.join(td, "ext3.py")
82 with open(ext3, "w", encoding="utf-8") as f:
83 f.write(ext3_content)
84
85 assert "ext3" not in em.loaded
86
87 with prepended_to_syspath(td):
88 # Load extension
89 with tt.AssertPrints("True"):
90 assert em.load_extension("ext3") is None
91 assert "ext3" in em.loaded
92
93
94def test_non_extension():

Callers

nothing calls this directly

Calls 4

load_extensionMethod · 0.80
get_ipythonFunction · 0.70
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…