diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index 15d496ec4cbe56..3a9ac275f4b5c2 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -875,8 +875,6 @@ call fails (for example because the path doesn't exist). WindowsPath('c:/windows') >>> p = Path.from_uri('file:/c|/windows') WindowsPath('c:/windows') - >>> p = Path.from_uri('file://///c:/windows') - WindowsPath('c:/windows') URIs with no slash after the scheme (and no drive letter) are parsed as relative paths:: diff --git a/Lib/test/test_pathlib.py b/Lib/test/test_pathlib.py index 67492a29593d34..ef2a8abbca0285 100644 --- a/Lib/test/test_pathlib.py +++ b/Lib/test/test_pathlib.py @@ -3463,7 +3463,6 @@ def test_from_uri(self): self.assertEqual(P.from_uri('file:c|/path/to/file'), P('c:/path/to/file')) self.assertEqual(P.from_uri('file:/c|/path/to/file'), P('c:/path/to/file')) self.assertEqual(P.from_uri('file:///c|/path/to/file'), P('c:/path/to/file')) - self.assertEqual(P.from_uri('file://///c|/path/to/file'), P('c:/path/to/file')) # UNC paths self.assertEqual(P.from_uri('file://server/path/to/file'), P('//server/path/to/file')) self.assertEqual(P.from_uri('file:////server/path/to/file'), P('//server/path/to/file'))