Commit 54610bb
authored
bpo-46426: Improve tests for the dir_fd argument (pythonGH-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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
458 | 469 | | |
459 | 470 | | |
460 | 471 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
848 | 848 | | |
849 | 849 | | |
850 | 850 | | |
851 | | - | |
852 | | - | |
| 851 | + | |
853 | 852 | | |
854 | 853 | | |
855 | | - | |
856 | | - | |
857 | 854 | | |
858 | 855 | | |
859 | 856 | | |
| |||
4341 | 4338 | | |
4342 | 4339 | | |
4343 | 4340 | | |
4344 | | - | |
4345 | | - | |
| 4341 | + | |
4346 | 4342 | | |
4347 | 4343 | | |
4348 | 4344 | | |
| |||
4357 | 4353 | | |
4358 | 4354 | | |
4359 | 4355 | | |
4360 | | - | |
4361 | | - | |
4362 | 4356 | | |
4363 | 4357 | | |
4364 | 4358 | | |
| |||
0 commit comments