Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pytest-dev/pytest
/ getgroupid
Function
getgroupid
src/_pytest/_py/path.py:257–262 ·
view source on GitHub ↗
(group)
Source
from the content-addressed store, hash-verified
255
256
257
def
getgroupid(group):
258
import
grp
259
260
if
not isinstance(group, int):
261
group = grp.getgrnam(group)[2]
# type:ignore[attr-defined,unused-ignore]
262
return
group
263
264
265
class
LocalPath:
Callers
1
chown
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected