Test info-showing utility.
()
| 107 | |
| 108 | |
| 109 | def 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 | |
| 124 | def test_sys_info_complete(): |
nothing calls this directly
no test coverage detected