From 14ea3dadbb65329a28de0e9380e386fd029e809b 2021-04-04 14:14:13 From: Blazej Michalik Date: 2021-04-04 14:14:13 Subject: [PATCH] Add a testcase for Image raising on bad filename --- 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/')