diff options
author | Barney Gale <barney.gale@gmail.com> | 2024-12-06 18:10:00 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-06 18:10:00 +0000 |
commit | 5b6635f772d187d6049a56bfea76855644cd4ca1 (patch) | |
tree | aa852396d04ad18c9922bbc66a8584478eeca5f4 /Lib/test/test_pathlib/test_pathlib_abc.py | |
parent | e59caf67cdb8dae26470f00599ea8dbb00968a73 (diff) | |
download | cpython-5b6635f772d187d6049a56bfea76855644cd4ca1.tar.gz cpython-5b6635f772d187d6049a56bfea76855644cd4ca1.zip |
GH-127381: pathlib ABCs: remove `PathBase.rename()` and `replace()` (#127658)
These methods are obviated by `PathBase.move()`, which can move directories
and supports any `PathBase` object as a target.
Diffstat (limited to 'Lib/test/test_pathlib/test_pathlib_abc.py')
-rw-r--r-- | Lib/test/test_pathlib/test_pathlib_abc.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/test/test_pathlib/test_pathlib_abc.py b/Lib/test/test_pathlib/test_pathlib_abc.py index 7ba3fa823a3..00153e3f5e9 100644 --- a/Lib/test/test_pathlib/test_pathlib_abc.py +++ b/Lib/test/test_pathlib/test_pathlib_abc.py @@ -1376,8 +1376,6 @@ class PathBaseTest(PurePathBaseTest): self.assertRaises(e, p.hardlink_to, 'foo') self.assertRaises(e, p.mkdir) self.assertRaises(e, p.touch) - self.assertRaises(e, p.rename, 'foo') - self.assertRaises(e, p.replace, 'foo') self.assertRaises(e, p.chmod, 0o755) self.assertRaises(e, p.lchmod, 0o755) self.assertRaises(e, p.unlink) |