From ba09cbc00ec05b8d414126dd79962b358114c3a2 2014-09-29 14:11:19 From: Matthias Bussonnier Date: 2014-09-29 14:11:19 Subject: [PATCH] add test sysinfo is jsonable --- diff --git a/IPython/utils/tests/test_sysinfo.py b/IPython/utils/tests/test_sysinfo.py new file mode 100644 index 0000000..c4f9c3c --- /dev/null +++ b/IPython/utils/tests/test_sysinfo.py @@ -0,0 +1,17 @@ +# coding: utf-8 +"""Test suite for our sysinfo utilities.""" + +# Copyright (c) IPython Development Team. +# Distributed under the terms of the Modified BSD License. + +import json +import nose.tools as nt + +from IPython.utils import sysinfo + + +def test_json_getsysinfo(): + """ + test that it is easily jsonable and don't return bytes somewhere. + """ + json.dumps(sysinfo.get_sys_info())