mirror of
https://github.com/python/cpython.git
synced 2025-07-22 18:55:22 +00:00
bpo-39950: Fix deprecation warning in test for pathlib.Path.link_to()
(GH-26155) (GH-26178)
(cherry picked from commit 1a08c5ac49
)
Co-authored-by: Barney Gale <barney.gale@gmail.com>
This commit is contained in:
parent
68b79f75c5
commit
b913f47e87
2 changed files with 3 additions and 2 deletions
|
@ -1934,7 +1934,8 @@ class _BasePathTest(object):
|
|||
self.assertTrue(p.stat)
|
||||
# Linking to a str of a relative path.
|
||||
r = rel_join('fileAAA')
|
||||
q.link_to(r)
|
||||
with self.assertWarns(DeprecationWarning):
|
||||
q.link_to(r)
|
||||
self.assertEqual(os.stat(r).st_size, size)
|
||||
self.assertTrue(q.stat)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue