summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_exception_hierarchy.py
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2024-08-24 14:11:39 (GMT)
committerGitHub <noreply@github.com>2024-08-24 14:11:39 (GMT)
commitc4ee4e756a311f03633723445299bde90eb7b79c (patch)
tree5068b0cc0072af2a4110d7bf200d387dcb792979 /Lib/test/test_exception_hierarchy.py
parent127660bcdb28294c3817f955cabd85afb6828ffc (diff)
downloadcpython-c4ee4e756a311f03633723445299bde90eb7b79c.zip
cpython-c4ee4e756a311f03633723445299bde90eb7b79c.tar.gz
cpython-c4ee4e756a311f03633723445299bde90eb7b79c.tar.bz2
GH-122890: Fix low-level error handling in `pathlib.Path.copy()` (#122897)
Give unique names to our low-level FD copying functions, and try each one in turn. Handle errors appropriately for each implementation: - `fcntl.FICLONE`: suppress `EBADF`, `EOPNOTSUPP`, `ETXTBSY`, `EXDEV` - `posix._fcopyfile`: suppress `EBADF`, `ENOTSUP` - `os.copy_file_range`: suppress `ETXTBSY`, `EXDEV` - `os.sendfile`: suppress `ENOTSOCK`
Diffstat (limited to 'Lib/test/test_exception_hierarchy.py')
0 files changed, 0 insertions, 0 deletions