MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_pathname2url_nonascii

Method test_pathname2url_nonascii

Lib/test/test_urllib.py:1515–1519  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1513
1514 @unittest.skipUnless(os_helper.FS_NONASCII, 'need os_helper.FS_NONASCII')
1515 def test_pathname2url_nonascii(self):
1516 encoding = sys.getfilesystemencoding()
1517 errors = sys.getfilesystemencodeerrors()
1518 url = urllib.parse.quote(os_helper.FS_NONASCII, encoding=encoding, errors=errors)
1519 self.assertEqual(urllib.request.pathname2url(os_helper.FS_NONASCII), url)
1520
1521 def test_url2pathname(self):
1522 # Test cases common to Windows and POSIX.

Callers

nothing calls this directly

Calls 2

quoteMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected