Skip to content

Commit 73c8bcf

Browse files
committed
Windows test fixes python#3, also fix docs lint
1 parent 653b9ae commit 73c8bcf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Doc/whatsnew/3.14.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ urllib.request
461461
* On non-Windows platforms, :func:`~urllib.request.pathname2url` generates
462462
URIs that begin with three slashes (rather than one) when given an
463463
absolute path. :func:`~urllib.request.url2pathname` performs the opposite
464-
transformation, so ``file:///etc/hosts` becomes ``/etc/hosts``.
464+
transformation, so ``file:///etc/hosts`` becomes ``/etc/hosts``.
465465
* On non-Windows platforms, :func:`~urllib.request.url2pathname` raises
466466
:exc:`urllib.error.URLError` if the URI includes a non-local authority,
467467
like ``file://other-machine/etc/hosts``.

Lib/test/test_urllib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1534,7 +1534,7 @@ def test_pathname2url_win(self):
15341534
# Long drive letter
15351535
self.assertEqual(fn("XX:\\"), "XX%3A/")
15361536
# No drive letter
1537-
self.assertEqual(fn("\\folder\\test\\"), '/folder/test/')
1537+
self.assertEqual(fn("\\folder\\test\\"), '///folder/test/')
15381538
self.assertEqual(fn("\\\\folder\\test\\"), '//folder/test/')
15391539
self.assertEqual(fn("\\\\\\folder\\test\\"), '///folder/test/')
15401540
self.assertEqual(fn('\\\\some\\share\\'), '//some/share/')

0 commit comments

Comments
 (0)