From 99ba8a6afee2ed06023c9c0a281bb85c7a424bd6 2017-07-29 03:14:25 From: Grant Nestor Date: 2017-07-29 03:14:25 Subject: [PATCH] Update "validity of jpeg and png" test --- diff --git a/IPython/core/tests/test_display.py b/IPython/core/tests/test_display.py index f925a8b..5e3b37f 100644 --- a/IPython/core/tests/test_display.py +++ b/IPython/core/tests/test_display.py @@ -77,8 +77,8 @@ def test_base64image(): def test_image_filename_defaults(): '''test format constraint, and validity of jpeg and png''' tpath = ipath.get_ipython_package_dir() - # nt.assert_raises(ValueError, display.Image, filename=os.path.join(tpath, 'testing/tests/badformat.gif'), - # embed=True) + nt.assert_raises(ValueError, display.Image, filename=os.path.join(tpath, 'testing/tests/badformat.zip'), + embed=True) nt.assert_raises(ValueError, display.Image) nt.assert_raises(ValueError, display.Image, data='this is not an image', format='badformat', embed=True) # check boths paths to allow packages to test at build and install time