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

Function test_nowarn_notimplemented

tests/test_formatters.py:313–325  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

311
312
313def test_nowarn_notimplemented():
314 f = HTMLFormatter()
315
316 class HTMLNotImplemented(object):
317 def _repr_html_(self):
318 raise NotImplementedError
319
320 h = HTMLNotImplemented()
321 with capture_output() as captured:
322 result = f(h)
323 assert result is None
324 assert "" == captured.stderr
325 assert "" == captured.stdout
326
327
328def test_warn_error_for_type():

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

Used in the wild real call sites across dependent graphs

searching dependent graphs…