Skip to content

Commit 291dbd5

Browse files
committed
cleanup tests files
1 parent 7a4d989 commit 291dbd5

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ _quarto:
99
- '${input_stem}.quarto_ipynb'
1010
---
1111

12-
With default setting, this document should error at rendering because of Exception at IPython.display level.
12+
With default setting, this document should error at rendering because of an exception at IPython.display level.
1313

1414
By default `nbconvert` does not throw exception for error thrown by IPython display, on purpose as document output is still valid as there are other representation.
1515

1616
```{python}
17-
# First cell - create an object with a buggy _repr_html_ method
17+
# First cell - create an object with a buggy _repr_markdown_ method
1818
class BuggyDisplay:
1919
def __init__(self):
2020
self.data = "This works fine"
@@ -37,12 +37,9 @@ buggy = BuggyDisplay()
3737
```
3838

3939
```{python}
40-
# Second cell - display the object (triggers error in _repr_html_)
41-
# This will show an error in the output but won't stop execution
4240
buggy
4341
```
4442

4543
```{python}
46-
# Third cell - proves execution continues
4744
print("Execution continued despite display error")
4845
```

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,9 @@ buggy = BuggyDisplay()
3838

3939
```{python}
4040
#| error: true
41-
# Second cell - display the object (triggers error in _repr_html_)
42-
# This will show an error in the output but won't stop execution
4341
buggy
4442
```
4543

4644
```{python}
47-
# Third cell - proves execution continues
4845
print("Execution continued despite display error")
4946
```

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ With `error: true` this document should not error at rendering and Exception at
1616
By default `nbconvert` does not throw exception for error thrown by IPython display, on purpose as document output is still valid as there are other representation.
1717

1818
```{python}
19-
# First cell - create an object with a buggy _repr_html_ method
19+
# First cell - create an object with a buggy _repr_markdown_ method
2020
class BuggyDisplay:
2121
def __init__(self):
2222
self.data = "This works fine"
@@ -39,12 +39,9 @@ buggy = BuggyDisplay()
3939
```
4040

4141
```{python}
42-
# Second cell - display the object (triggers error in _repr_html_)
43-
# This will show an error in the output but won't stop execution
4442
buggy
4543
```
4644

4745
```{python}
48-
# Third cell - proves execution continues
4946
print("Execution continued despite display error")
5047
```

0 commit comments

Comments
 (0)