]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-89812: Simplify creation of symlinks in pathlib tests. (GH-106061)
authorBarney Gale <barney.gale@gmail.com>
Fri, 30 Jun 2023 23:46:44 +0000 (00:46 +0100)
committerGitHub <noreply@github.com>
Fri, 30 Jun 2023 23:46:44 +0000 (00:46 +0100)
commite212618bafaa4f775502e3442de0affb80205b5e
treefefd0b1cc09bd6e8765823212d849f00392aa7c1
parent46c1097868745eeb47abbc8af8c34e8fcb80ff1d
GH-89812: Simplify creation of symlinks in pathlib tests. (GH-106061)

Remove `PathTest.dirlink()` function. Symlinks in `PathTest.setUp()` are
created using `os.symlink()` directly; symlinks in test functions use
`Path.symlink_to()` in order to make the tests applicable to a
(near-)future `AbstractPath` class.
Lib/test/test_pathlib.py