aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_pathlib/test_pathlib_abc.py
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2024-01-14 23:06:04 +0000
committerGitHub <noreply@github.com>2024-01-14 23:06:04 +0000
commit4de4e654e592c4b3b1a073140b97ff7f373c7553 (patch)
tree7f69b2e02b860ce1adbc775f7e8faefe085cf329 /Lib/test/test_pathlib/test_pathlib_abc.py
parentca6cf56330ae7751819b62748f33f23d98596703 (diff)
downloadcpython-4de4e654e592c4b3b1a073140b97ff7f373c7553.tar.gz
cpython-4de4e654e592c4b3b1a073140b97ff7f373c7553.zip
Replace `pathlib._abc.PathModuleBase.splitroot()` with `splitdrive()` (#114065)
This allows users of the `pathlib-abc` PyPI package to use `posixpath` or `ntpath` as a path module in versions of Python lacking `os.path.splitroot()` (3.11 and before).
Diffstat (limited to 'Lib/test/test_pathlib/test_pathlib_abc.py')
-rw-r--r--Lib/test/test_pathlib/test_pathlib_abc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_pathlib/test_pathlib_abc.py b/Lib/test/test_pathlib/test_pathlib_abc.py
index c3c568c296e..f877c98b767 100644
--- a/Lib/test/test_pathlib/test_pathlib_abc.py
+++ b/Lib/test/test_pathlib/test_pathlib_abc.py
@@ -27,7 +27,7 @@ class PathModuleBaseTest(unittest.TestCase):
m.sep
self.assertRaises(e, m.join, 'foo')
self.assertRaises(e, m.split, 'foo')
- self.assertRaises(e, m.splitroot, 'foo')
+ self.assertRaises(e, m.splitdrive, 'foo')
self.assertRaises(e, m.normcase, 'foo')
self.assertRaises(e, m.isabs, 'foo')