(self)
| 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. |
nothing calls this directly
no test coverage detected