()
| 4 | |
| 5 | |
| 6 | def test_import_denier(): |
| 7 | ID.forbid("ipython_denied_module") |
| 8 | with pytest.raises(ImportError, match="disabled by IPython"): |
| 9 | import ipython_denied_module |
| 10 | with pytest.raises(ImportError, match="disabled by IPython"): |
| 11 | importlib.import_module("ipython_denied_module") |
nothing calls this directly
no test coverage detected
searching dependent graphs…