From 695be0a2ee4f91b2570619b4ab528b6b18503ef0 2016-06-06 21:23:51 From: Matthias Bussonnier Date: 2016-06-06 21:23:51 Subject: [PATCH] Merge pull request #9549 from Carreau/fix-nightly 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]