Skip to content

Commit

Permalink
Remove test/docs for five-slash DOS drive variant, which doesn't
Browse files Browse the repository at this point in the history
seem to exist.
  • Loading branch information
barneygale committed Aug 4, 2023
1 parent f2cc33f commit d61d665
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions Doc/library/pathlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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::
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down

0 comments on commit d61d665

Please sign in to comment.