MCPcopy Create free account
hub / github.com/ipython/ipython / test_import_nested

Function test_import_nested

IPython/utils/tests/test_importstring.py:29–33  ·  view source on GitHub ↗

Test nested imports from the stdlib

()

Source from the content-addressed store, hash-verified

27
28
29def test_import_nested():
30 "Test nested imports from the stdlib"
31 from os import path
32 path2 = import_item('os.path')
33 nt.assert_true(path is path2)
34
35
36def test_import_raises():

Callers

nothing calls this directly

Calls 1

import_itemFunction · 0.90

Tested by

no test coverage detected