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

Function test_import_raises

IPython/utils/tests/test_importstring.py:36–38  ·  view source on GitHub ↗

Test that failing imports raise the right exception

()

Source from the content-addressed store, hash-verified

34
35
36def test_import_raises():
37 "Test that failing imports raise the right exception"
38 nt.assert_raises(ImportError, import_item, 'IPython.foobar')
39

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected