Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ipython/ipython
/ BadHTML
Class
BadHTML
IPython/core/tests/test_formatters.py:243–245 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
241
def
test_error_method():
242
f = HTMLFormatter()
243
class
BadHTML(object):
244
def
_repr_html_(self):
245
raise
ValueError(
"Bad HTML"
)
246
bad = BadHTML()
247
with
capture_output()
as
captured:
248
result = f(bad)
Callers
1
test_error_method
Function · 0.85
Calls
no outgoing calls
Tested by
1
test_error_method
Function · 0.68