mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-39950: Fix deprecation warning in test for pathlib.Path.link_to()
(GH-26155)
This commit is contained in:
parent
fdfea4ab16
commit
1a08c5ac49
2 changed files with 3 additions and 2 deletions
|
@ -1265,7 +1265,7 @@ class Path(PurePath):
|
|||
warnings.warn("pathlib.Path.link_to() is deprecated and is scheduled "
|
||||
"for removal in Python 3.12. "
|
||||
"Use pathlib.Path.hardlink_to() instead.",
|
||||
DeprecationWarning)
|
||||
DeprecationWarning, stacklevel=2)
|
||||
self._accessor.link(self, target)
|
||||
|
||||
# Convenience functions for querying the stat results
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue