Skip to content

Commit

Permalink
fixes #644
Browse files Browse the repository at this point in the history
  • Loading branch information
jph00 committed Oct 29, 2024
1 parent 686ccc1 commit a11d284
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
1 change: 1 addition & 0 deletions fastcore/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ def test_warns(f, show=False):
# %% ../nbs/00_test.ipynb
def test_fig_exists(ax):
"Test there is a figure displayed in `ax`"
if not hasattr(ax.figure.canvas, 'renderer'): ax.figure.canvas.draw()
assert ax and len(ax.figure.canvas.tostring_argb())

# %% ../nbs/00_test.ipynb
Expand Down
Loading

0 comments on commit a11d284

Please sign in to comment.