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

Function cpu_count

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

Source from the content-addressed store, hash-verified

83@pytest.fixture
84def monkeypatch_cpu_count(monkeypatch):
85 def cpu_count():
86 return 250 # Absurdly high, unlikely to match real value
87
88 def sched_getaffinity(pid):
89 return set(range(250))

Callers 4

test_cpu_countFunction · 0.90
test_cpu_affinity_psutilFunction · 0.90
test_cpu_count_cgroupsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected