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

Function test_cpu_count

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

Source from the content-addressed store, hash-verified

14
15
16def test_cpu_count():
17 count = cpu_count()
18 assert isinstance(count, int)
19 assert count == CPU_COUNT
20 assert count <= (os.cpu_count() or 999)
21 assert count >= 1
22
23
24@pytest.mark.skipif(MACOS, reason="No CPU affinity in psutil")

Callers

nothing calls this directly

Calls 1

cpu_countFunction · 0.90

Tested by

no test coverage detected