diff --git a/IPython/core/tests/test_display.py b/IPython/core/tests/test_display.py index c5a31d5..21cc227 100644 --- a/IPython/core/tests/test_display.py +++ b/IPython/core/tests/test_display.py @@ -457,3 +457,7 @@ def test_display_handle(): 'update': True, }) + +@nt.raises(FileNotFoundError) +def test_image_bad_filename_raises_proper_exception(): + display.Image('/this/file/does/not/exist/')