]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46426: Improve tests for the dir_fd argument (GH-30668)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 21 Jan 2022 07:54:50 +0000 (09:54 +0200)
committerGitHub <noreply@github.com>
Fri, 21 Jan 2022 07:54:50 +0000 (09:54 +0200)
commit54610bb448a9cf5be77d53b66169fca4c11be6cb
treef8314c61ef10b110cac70a1ba19532426bd7b5b3
parent40fcd16889028bd3cd2289e0f8a2af43f17a5824
bpo-46426: Improve tests for the dir_fd argument (GH-30668)

Ensure that directory file descriptors refer to directories different
from the current directory, and that src_dir_fd and dst_dir_fd refer
to different directories.

Add context manager open_dir_fd() in test.support.os_helper.
Lib/test/support/os_helper.py
Lib/test/test_os.py
Lib/test/test_posix.py