-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Closed
Labels
OS-wasistdlibPython modules in the Lib dirPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
Found as part of #135802.
For instance:
File "/Lib/test/test_netrc.py", line 69, in use_default_netrc_in_home
return netrc.netrc()
~~~~~~~~~~~^^
File "/Lib/netrc.py", line 76, in __init__
self._parse(file, fp, default_netrc)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Lib/netrc.py", line 143, in _parse
self._security_check(fp, default_netrc, self.hosts[entryname][0])
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Lib/netrc.py", line 148, in _security_check
if prop.st_uid != os.getuid():
^^^^^^^^^
AttributeError: module 'os' has no attribute 'getuid'. Did you mean: 'getpid'?
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
Metadata
Metadata
Assignees
Labels
OS-wasistdlibPython modules in the Lib dirPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error