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

Method test_tryimport

tests/test_completer.py:1780–1786  ·  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

1778 self.assertIn("qwick", matches)
1779
1780 def test_tryimport(self):
1781 """
1782 Test that try-import don't crash on trailing dot, and import modules before
1783 """
1784 from IPython.core.completerlib import try_import
1785
1786 assert try_import("IPython.")
1787
1788 def test_aimport_module_completer(self):
1789 ip = get_ipython()

Callers

nothing calls this directly

Calls 1

try_importFunction · 0.90

Tested by

no test coverage detected