MCPcopy
hub / github.com/mne-tools/mne-python / test_sys_info_basic

Function test_sys_info_basic

mne/utils/tests/test_config.py:109–121  ·  view source on GitHub ↗

Test info-showing utility.

()

Source from the content-addressed store, hash-verified

107
108
109def test_sys_info_basic():
110 """Test info-showing utility."""
111 out = ClosingStringIO()
112 sys_info(fid=out, check_version=False)
113 out = out.getvalue()
114 assert "numpy" in out
115 # replace all in-line whitespace with single space
116 out = "\n".join(" ".join(o.split()) for o in out.splitlines())
117 assert "?" not in out
118 if platform.system() == "Darwin":
119 assert "Platform macOS-" in out
120 elif platform.system() == "Linux":
121 assert "Platform Linux" in out
122
123
124def test_sys_info_complete():

Callers

nothing calls this directly

Calls 4

getvalueMethod · 0.95
ClosingStringIOClass · 0.90
sys_infoFunction · 0.90
splitMethod · 0.80

Tested by

no test coverage detected