Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
84
def
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_count
Function · 0.90
test_cpu_affinity_psutil
Function · 0.90
test_cpu_count_cgroups
Function · 0.90
test_cpu_count_cgroups_v2
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected