MCPcopy
hub / github.com/pytest-dev/pytest / getuserid

Function getuserid

src/_pytest/_py/path.py:249–254  ·  view source on GitHub ↗
(user)

Source from the content-addressed store, hash-verified

247
248
249def getuserid(user):
250 import pwd
251
252 if not isinstance(user, int):
253 user = pwd.getpwnam(user)[2] # type:ignore[attr-defined,unused-ignore]
254 return user
255
256
257def getgroupid(group):

Callers 1

chownMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…