bpo-39950: Fix deprecation warning in test for `pathlib.Path.link_to()` (GH-26155) (GH-26178)

(cherry picked from commit 1a08c5ac49b748d5e4e4b508d22d3804e3cd4dcc)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
2 files changed