From aa2e250d80b93783eacd71bb64b7bdede864ab8b 2016-06-06 21:13:19 From: Matthias Bussonnier Date: 2016-06-06 21:13:19 Subject: [PATCH] Fix test on Python nightly --- diff --git a/IPython/core/tests/test_oinspect.py b/IPython/core/tests/test_oinspect.py index ed6c08a..b4d6945 100644 --- a/IPython/core/tests/test_oinspect.py +++ b/IPython/core/tests/test_oinspect.py @@ -270,7 +270,8 @@ def test_info(): nt.assert_equal(i['type_name'], 'type') expted_class = str(type(type)) # (Python 3) or nt.assert_equal(i['base_class'], expted_class) - nt.assert_equal(i['string_form'], "") + if sys.version_info > (3,): + nt.assert_regex(i['string_form'], "") fname = __file__ if fname.endswith(".pyc"): fname = fname[:-1]