test_sysinfo.py 390 B

1234567891011121314151617
  1. # coding: utf-8
  2. """Test suite for our sysinfo utilities."""
  3. # Copyright (c) IPython Development Team.
  4. # Distributed under the terms of the Modified BSD License.
  5. import json
  6. import nose.tools as nt
  7. from IPython.utils import sysinfo
  8. def test_json_getsysinfo():
  9. """
  10. test that it is easily jsonable and don't return bytes somewhere.
  11. """
  12. json.dumps(sysinfo.get_sys_info())