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

Function test_import_nested

tests/test_importstring.py:31–36  ·  view source on GitHub ↗

Test nested imports from the stdlib

()

Source from the content-addressed store, hash-verified

29
30
31def test_import_nested():
32 "Test nested imports from the stdlib"
33 from os import path
34
35 path2 = import_item("os.path")
36 assert path is path2
37
38
39def test_import_raises():

Callers

nothing calls this directly

Calls 1

import_itemFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…