Skip to content

Commit 217950f

Browse files
committed
tests - clarify comment in test files
1 parent becb13e commit 217950f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/docs/smoke-all/jupyter/error/display-error-false.qmd

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,12 @@ class BuggyDisplay:
2020
self.data = "This works fine"
2121
2222
def _repr_html_(self):
23-
# This error happens during display, not execution
24-
# raise ValueError("Display phase error!")
23+
# HTML representation used for `format: html`
2524
return "<b>HTML fallback:</b> " + self.data
2625
2726
def _repr_markdown_(self):
28-
# Markdown representation as fallback when HTML fails
29-
# return "**Markdown fallback:** " + self.data
27+
# This error happens during display, not execution
28+
# even if the markdown reprensentation is not used
3029
raise ValueError("Display phase error!")
3130
3231
def __repr__(self):

tests/docs/smoke-all/jupyter/error/display-error-true-global.qmd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ class BuggyDisplay:
2222
self.data = "This works fine"
2323
2424
def _repr_html_(self):
25-
# This error happens during display, not execution
25+
# HTML representation used for `format: html`
2626
return "<b>HTML fallback:</b> " + self.data
2727
2828
def _repr_markdown_(self):
29-
# Markdown representation as fallback when HTML fails
29+
# This error happens during display, not execution
30+
# even if the markdown reprensentation is not used
3031
raise ValueError("Display phase error for Markdown!")
3132
3233
def __repr__(self):

0 commit comments

Comments
 (0)