diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-05-16 15:35:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-16 15:35:44 -0700 |
commit | b913f47e87f788e705716ae037ee9f68b4265e69 (patch) | |
tree | ce4edab457c4e726ea4f330d85a20cc831edad6d /Lib/pathlib.py | |
parent | 68b79f75c535724eb526ed68ad7a73c8cb7956b1 (diff) | |
download | cpython-git-b913f47e87f788e705716ae037ee9f68b4265e69.tar.gz |
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>
Diffstat (limited to 'Lib/pathlib.py')
-rw-r--r-- | Lib/pathlib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pathlib.py b/Lib/pathlib.py index 94e079fffe..8e6eb48b97 100644 --- a/Lib/pathlib.py +++ b/Lib/pathlib.py @@ -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 |