We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c85b21e commit 84c5fe4Copy full SHA for 84c5fe4
src/_pytest/tmpdir.py
@@ -131,8 +131,8 @@ def getbasetemp(self) -> Path:
131
# rootdir's permissions. Historically 0o755 was used, so we can't
132
# just error out on this, at least for a while.
133
if hasattr(os, "getuid"):
134
+ uid = os.getuid() # type:ignore[attr-defined]
135
rootdir_stat = rootdir.stat()
- uid = os.getuid()
136
# getuid shouldn't fail, but cpython defines such a case.
137
# Let's hope for the best.
138
if uid != -1:
0 commit comments