Searched refs:fs_encoding (Results 1 – 5 of 5) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_c_locale_coercion.py | 115 def get_expected_details(cls, coercion_expected, fs_encoding, stream_encoding, env_vars): argument 130 return dict(cls(fs_encoding, *stream_info, *env_info)._asdict()) 288 fs_encoding, stream_encoding, argument 308 fs_encoding = EXPECTED_C_LOCALE_FS_ENCODING 341 fs_encoding, 356 fs_encoding,
|
D | test_imp.py | 121 fs_encoding = sys.getfilesystemencoding() 140 self.assertEqual(fs_encoding, 'utf-8') 145 special_char = known_locales.get(fs_encoding) 149 % fs_encoding) 150 decoded_char = special_char.decode(fs_encoding)
|
D | test_sys.py | 665 def check_fsencoding(self, fs_encoding, expected=None): argument 666 self.assertIsNotNone(fs_encoding) 667 codecs.lookup(fs_encoding) 669 self.assertEqual(fs_encoding, expected) 672 fs_encoding = sys.getfilesystemencoding() 677 self.check_fsencoding(fs_encoding, expected)
|
/external/python/cpython2/Lib/test/ |
D | test_os.py | 926 fs_encoding = sys.getfilesystemencoding() 928 sorted(os.listdir(support.TESTFN.decode(fs_encoding))), 929 [path.decode(fs_encoding) for path in self.created_paths]) 940 fs_encoding = sys.getfilesystemencoding() 941 path = u'\\\\?\\' + os.path.abspath(support.TESTFN.decode(fs_encoding)) 944 [path.decode(fs_encoding) for path in self.created_paths])
|
D | test_ssl.py | 993 fs_encoding = sys.getfilesystemencoding() 995 filename.encode(fs_encoding) 997 …f.skipTest("filename %r cannot be encoded to the filesystem encoding %r" % (filename, fs_encoding))
|