From 6fb51bdec380a8ce9dff633ff6f7b80e48ee5d10 2012-05-27 09:43:10 From: Thomas Kluyver Date: 2012-05-27 09:43:10 Subject: [PATCH] Make repr-reliant test less specific --- diff --git a/IPython/utils/tests/test_jsonutil.py b/IPython/utils/tests/test_jsonutil.py index cb79f80..45247a0 100644 --- a/IPython/utils/tests/test_jsonutil.py +++ b/IPython/utils/tests/test_jsonutil.py @@ -58,7 +58,8 @@ def test(): def test_lambda(): jc = json_clean(lambda : 1) - nt.assert_true(jc.startswith(' at ')) + assert isinstance(jc, str) + assert '' in jc json.dumps(jc)