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

Function test_nowarn_notimplemented

IPython/core/tests/test_formatters.py:254–264  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

252 nt.assert_in("_repr_html_", captured.stdout)
253
254def test_nowarn_notimplemented():
255 f = HTMLFormatter()
256 class HTMLNotImplemented(object):
257 def _repr_html_(self):
258 raise NotImplementedError
259 h = HTMLNotImplemented()
260 with capture_output() as captured:
261 result = f(h)
262 nt.assert_is(result, None)
263 nt.assert_equal("", captured.stderr)
264 nt.assert_equal("", captured.stdout)
265
266def test_warn_error_for_type():
267 f = HTMLFormatter()

Callers

nothing calls this directly

Calls 4

HTMLFormatterClass · 0.90
HTMLNotImplementedClass · 0.85
capture_outputClass · 0.85
fFunction · 0.70

Tested by

no test coverage detected