Home
last modified time | relevance | path

Searched refs:fs_encoding (Results 1 – 5 of 5) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_c_locale_coercion.py114 def get_expected_details(cls, coercion_expected, fs_encoding, stream_encoding, env_vars): argument
129 return dict(cls(fs_encoding, *stream_info, *env_info)._asdict())
292 fs_encoding, stream_encoding, argument
312 fs_encoding = EXPECTED_C_LOCALE_FS_ENCODING
345 fs_encoding,
360 fs_encoding,
Dtest_imp.py121 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)
Dtest_sys.py643 def check_fsencoding(self, fs_encoding, expected=None): argument
644 self.assertIsNotNone(fs_encoding)
645 codecs.lookup(fs_encoding)
647 self.assertEqual(fs_encoding, expected)
650 fs_encoding = sys.getfilesystemencoding()
655 self.check_fsencoding(fs_encoding, expected)
/external/python/cpython2/Lib/test/
Dtest_os.py926 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])
Dtest_ssl.py993 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))