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

Function test_autoimport_deep_module

tests/test_guarded_eval.py:1022–1031  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1020
1021
1022def test_autoimport_deep_module():
1023 context = EvaluationContext(
1024 locals={},
1025 globals={},
1026 evaluation="limited",
1027 auto_import=import_module,
1028 policy_overrides={"allow_auto_import": True},
1029 )
1030 ElementTree = guarded_eval("xml.etree.ElementTree", context)
1031 assert hasattr(ElementTree, "ElementTree")

Callers

nothing calls this directly

Calls 2

EvaluationContextClass · 0.90
guarded_evalFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…