Repository navigation
Add os.supports_dir_fd to test.pythoninfo - #158605
Conversation
Split the attribute lists so the 'supports_*' names don't need to be repeated twice. Add 'supports_dir_fd'.
vstinner
left a comment
There was a problem hiding this comment.
LGTM.
The variables are formatted/logged properly:
$ ./python -m test.pythoninfo|grep -E '^os\.(supports|name|supports_bytes_environ)'
os.name: posix
os.supports_bytes_environ: True
os.supports_dir_fd: ['access', 'chmod', 'chown', 'link', 'lstat', 'mkdir', 'mkfifo', 'mknod', 'open', 'readlink', 'rename', 'rmdir', 'stat', 'statx', 'symlink', 'unlink', 'utime']
os.supports_effective_ids: ['access']
os.supports_fd: ['chdir', 'chmod', 'chown', 'execve', 'listdir', 'pathconf', 'scandir', 'stat', 'statvfs', 'statx', 'truncate', 'utime']
os.supports_follow_symlinks: ['access', 'chown', 'link', 'stat', 'statx', 'utime']
|
Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15. |
|
GH-159023 is a backport of this pull request to the 3.15 branch. |
|
GH-159024 is a backport of this pull request to the 3.14 branch. |
|
Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
|
GH-159059 is a backport of this pull request to the 3.13 branch. |
|
Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14. |
Split the attribute lists so the 'supports_*' names don't need to be repeated twice. Add 'supports_dir_fd'. (cherry picked from commit eb77b4b) Co-authored-by: Petr Viktorin <encukou@gmail.com>
|
Sorry @encukou, I had trouble completing the backport. Please retry by removing and re-adding the "needs backport to 3.14" label. |
I looked for
os.supports_dir_fdthis when investigating the 3.13 Android failure on GH-158429, and realized we don't show it yet.(So I need this and #146410 backported to 3.13, but, this PR should be useful even if that doesn't happen.)
Split the attribute lists so the 'supports_*' names don't need to be repeated twice.
Add 'supports_dir_fd'.