diff options
author | Barney Gale <barney.gale@gmail.com> | 2024-05-10 15:53:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-10 15:53:46 (GMT) |
commit | f772d0d08af2beef53db1e076c864cbdf3f5bac9 (patch) | |
tree | f6d1ebda222e31b8f321fc0a007de4339bf3de9c /Lib/test/test_pathlib/test_pathlib.py | |
parent | 13d7cf997bc9c22cf67c42fd799413e8325e0039 (diff) | |
download | cpython-f772d0d08af2beef53db1e076c864cbdf3f5bac9.zip cpython-f772d0d08af2beef53db1e076c864cbdf3f5bac9.tar.gz cpython-f772d0d08af2beef53db1e076c864cbdf3f5bac9.tar.bz2 |
GH-78707: Drop deprecated `pathlib.PurePath.[is_]relative_to()` arguments (#118780)
Remove support for supplying additional positional arguments to
`PurePath.relative_to()` and `is_relative_to()`. This has been deprecated
since Python 3.12.
Diffstat (limited to 'Lib/test/test_pathlib/test_pathlib.py')
-rw-r--r-- | Lib/test/test_pathlib/test_pathlib.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/Lib/test/test_pathlib/test_pathlib.py b/Lib/test/test_pathlib/test_pathlib.py index 5fd1a41..4fd2aac 100644 --- a/Lib/test/test_pathlib/test_pathlib.py +++ b/Lib/test/test_pathlib/test_pathlib.py @@ -311,19 +311,6 @@ class PurePathTest(test_pathlib_abc.DummyPurePathTest): self.assertRaises(ValueError, P('a/b').with_stem, '') self.assertRaises(ValueError, P('a/b').with_stem, '.') - def test_relative_to_several_args(self): - P = self.cls - p = P('a/b') - with self.assertWarns(DeprecationWarning): - p.relative_to('a', 'b') - p.relative_to('a', 'b', walk_up=True) - - def test_is_relative_to_several_args(self): - P = self.cls - p = P('a/b') - with self.assertWarns(DeprecationWarning): - p.is_relative_to('a', 'b') - def test_is_reserved_deprecated(self): P = self.cls p = P('a/b') |