We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f123044 commit b03b10dCopy full SHA for b03b10d
Lib/test/test_urllib.py
@@ -1619,7 +1619,9 @@ def test_url2pathname_posix(self):
1619
def test_url2pathname_nonascii(self):
1620
encoding = sys.getfilesystemencoding()
1621
errors = sys.getfilesystemencodeerrors()
1622
- url = urllib.parse.quote(os_helper.FS_NONASCII, encoding=encoding, errors=errors)
+ url = os_helper.FS_NONASCII
1623
+ self.assertEqual(urllib.request.url2pathname(url), os_helper.FS_NONASCII)
1624
+ url = urllib.parse.quote(url, encoding=encoding, errors=errors)
1625
self.assertEqual(urllib.request.url2pathname(url), os_helper.FS_NONASCII)
1626
1627
class Utility_Tests(unittest.TestCase):
0 commit comments