]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-89812: Make symlink support configurable in pathlib tests. (GH-106060)
authorBarney Gale <barney.gale@gmail.com>
Sat, 1 Jul 2023 11:24:34 +0000 (12:24 +0100)
committerGitHub <noreply@github.com>
Sat, 1 Jul 2023 11:24:34 +0000 (12:24 +0100)
commit3fd99b5a974314075424744747899b2acf18dadd
tree848b1ca36bbf1e0aaa73dd296c7d73b2ceda347b
parent200f2554114f3d40684af0969fef6af875cb1462
GH-89812: Make symlink support configurable in pathlib tests. (GH-106060)

Adjust the pathlib tests to add a new `PathTest.can_symlink` class
attribute, which allows us to enable or disable symlink support in tests.
A (near-)future commit will add an `AbstractPath` class; its tests will
hard-code the value to `True` or `False` depending on a stub subclass's
capabilities.
Lib/test/test_pathlib.py