MCPcopy Index your code
hub / github.com/python/cpython / test_directory

Method test_directory

Lib/test/test_unicode_file_functions.py:165–173  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

163 os.rename("tmp", name)
164
165 def test_directory(self):
166 dirname = os.path.join(os_helper.TESTFN,
167 'Gr\xfc\xdf-\u66e8\u66e9\u66eb')
168 filename = '\xdf-\u66e8\u66e9\u66eb'
169 with os_helper.temp_cwd(dirname):
170 with open(filename, 'wb') as f:
171 f.write((filename + '\n').encode("utf-8"))
172 os.access(filename,os.R_OK)
173 os.remove(filename)
174
175
176class UnicodeNFCFileTests(UnicodeFileTests):

Callers

nothing calls this directly

Calls 6

accessMethod · 0.80
openFunction · 0.50
joinMethod · 0.45
writeMethod · 0.45
encodeMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected