summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pathlib/test_pathlib_abc.py
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2024-01-05 22:56:04 (GMT)
committerGitHub <noreply@github.com>2024-01-05 22:56:04 (GMT)
commit3375dfed400494ba5cc1b744d52f6fb8b7796059 (patch)
tree124c0f4c37fc40590b75e5fb5c8ef43da393298b /Lib/test/test_pathlib/test_pathlib_abc.py
parentd99d8712253c3affc54cf7f6e71f161dea8347ce (diff)
downloadcpython-3375dfed400494ba5cc1b744d52f6fb8b7796059.zip
cpython-3375dfed400494ba5cc1b744d52f6fb8b7796059.tar.gz
cpython-3375dfed400494ba5cc1b744d52f6fb8b7796059.tar.bz2
GH-113568: Stop raising deprecation warnings from pathlib ABCs (#113757)
Diffstat (limited to 'Lib/test/test_pathlib/test_pathlib_abc.py')
-rw-r--r--Lib/test/test_pathlib/test_pathlib_abc.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/Lib/test/test_pathlib/test_pathlib_abc.py b/Lib/test/test_pathlib/test_pathlib_abc.py
index a67235b..3a7c036 100644
--- a/Lib/test/test_pathlib/test_pathlib_abc.py
+++ b/Lib/test/test_pathlib/test_pathlib_abc.py
@@ -542,10 +542,6 @@ class DummyPurePathTest(unittest.TestCase):
self.assertEqual(p.relative_to('a/b/c', walk_up=True), P('..'))
self.assertEqual(p.relative_to(P('c'), walk_up=True), P('../a/b'))
self.assertEqual(p.relative_to('c', walk_up=True), P('../a/b'))
- # With several args.
- with self.assertWarns(DeprecationWarning):
- p.relative_to('a', 'b')
- p.relative_to('a', 'b', walk_up=True)
# Unrelated paths.
self.assertRaises(ValueError, p.relative_to, P('c'))
self.assertRaises(ValueError, p.relative_to, P('a/b/c'))
@@ -607,9 +603,6 @@ class DummyPurePathTest(unittest.TestCase):
self.assertTrue(p.is_relative_to('a/'))
self.assertTrue(p.is_relative_to(P('a/b')))
self.assertTrue(p.is_relative_to('a/b'))
- # With several args.
- with self.assertWarns(DeprecationWarning):
- p.is_relative_to('a', 'b')
# Unrelated paths.
self.assertFalse(p.is_relative_to(P('c')))
self.assertFalse(p.is_relative_to(P('a/b/c')))