MCPcopy Create free account
hub / github.com/dask/dask / test_cpu_count

Function test_cpu_count

dask/tests/test_system.py:15–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14
15def test_cpu_count():
16 count = cpu_count()
17 assert isinstance(count, int)
18 assert count <= os.cpu_count()
19 assert count >= 1
20
21
22@pytest.mark.parametrize("dirname", ["cpuacct,cpu", "cpu,cpuacct", None])

Callers

nothing calls this directly

Calls 1

cpu_countFunction · 0.90

Tested by

no test coverage detected