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

Method test_tryimport

IPython/core/tests/test_completer.py:1046–1052  ·  view source on GitHub ↗

Test that try-import don't crash on trailing dot, and import modules before

(self)

Source from the content-addressed store, hash-verified

1044 nt.assert_in("qwick", matches)
1045
1046 def test_tryimport(self):
1047 """
1048 Test that try-import don't crash on trailing dot, and import modules before
1049 """
1050 from IPython.core.completerlib import try_import
1051
1052 assert try_import("IPython.")
1053
1054 def test_aimport_module_completer(self):
1055 ip = get_ipython()

Callers

nothing calls this directly

Calls 1

try_importFunction · 0.90

Tested by

no test coverage detected