From 94822b0c23d37e23191be2fc1e515b7fd7f880d2 2015-02-28 21:21:32 From: Thomas Kluyver Date: 2015-02-28 21:21:32 Subject: [PATCH] Update tests for info changes --- diff --git a/IPython/core/tests/test_oinspect.py b/IPython/core/tests/test_oinspect.py index 73cb2d2..8fb5a17 100644 --- a/IPython/core/tests/test_oinspect.py +++ b/IPython/core/tests/test_oinspect.py @@ -28,6 +28,7 @@ from IPython.core.magic import (Magics, magics_class, line_magic, register_line_cell_magic) from IPython.external.decorator import decorator from IPython.testing.decorators import skipif +from IPython.utils.path import compress_user from IPython.utils import py3compat @@ -241,7 +242,7 @@ def test_info(): fname = fname[:-1] # case-insensitive comparison needed on some filesystems # e.g. Windows: - nt.assert_equal(i['file'].lower(), fname.lower()) + nt.assert_equal(i['file'].lower(), compress_user(fname.lower())) nt.assert_equal(i['definition'], None) nt.assert_equal(i['docstring'], Call.__doc__) nt.assert_equal(i['source'], None) diff --git a/IPython/kernel/tests/test_message_spec.py b/IPython/kernel/tests/test_message_spec.py index 996ea7c..3dabcc4 100644 --- a/IPython/kernel/tests/test_message_spec.py +++ b/IPython/kernel/tests/test_message_spec.py @@ -384,7 +384,7 @@ def test_oinfo_detail(): content = reply['content'] assert content['found'] text = content['data']['text/plain'] - nt.assert_in('Definition:', text) + nt.assert_in('Signature:', text) nt.assert_in('Source:', text)