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

Function getuserid

src/_pytest/_py/path.py:249–254  ·  src/_pytest/_py/path.py::getuserid
(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] class="cm"># 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