bpo-46426: Improve tests for the dir_fd argument (GH-30668) · python/cpython@54610bb · GitHub
Skip to content

Commit 54610bb

Browse files
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.
1 parent 40fcd16 commit 54610bb

3 files changed

Lines changed: 208 additions & 230 deletions

File tree

Lib/test/support/os_helper.py

Lines changed: 11 additions & 0 deletions

Lib/test/test_os.py

Lines changed: 2 additions & 8 deletions

0 commit comments

Comments
 (0)