From ccdb3f550f787f1d4d808284e4c45d9fc139b70c 2013-07-15 17:24:28 From: Min RK <benjaminrk@gmail.com> Date: 2013-07-15 17:24:28 Subject: [PATCH] Merge pull request #3627 from juliantaylor/static-path use DEFAULT_STATIC_FILES_PATH in a test instead of package dir allows post installation tests with split static data to succeed --- diff --git a/IPython/core/tests/test_display.py b/IPython/core/tests/test_display.py index b0d20cc..a68a1ce 100644 --- a/IPython/core/tests/test_display.py +++ b/IPython/core/tests/test_display.py @@ -47,7 +47,8 @@ def test_image_filename_defaults(): embed=True) nt.assert_raises(ValueError, display.Image) nt.assert_raises(ValueError, display.Image, data='this is not an image', format='badformat', embed=True) - imgfile = os.path.join(tpath, 'html/static/base/images/ipynblogo.png') + from IPython.html import DEFAULT_STATIC_FILES_PATH + imgfile = os.path.join(DEFAULT_STATIC_FILES_PATH, 'base/images/ipynblogo.png') img = display.Image(filename=imgfile) nt.assert_equal('png', img.format) nt.assert_is_not_none(img._repr_png_())