python (3.12.0)

(root)/
lib/
python3.12/
test/
__pycache__/
test_unicode_file.cpython-312.pyc

Αe`ddlZddlZddlZddlZddlZddlZddlZddlmZm	Z	m
Z
mZmZejjs"	e
jej dZGddej*Zedk(rej0yy#eef$rej&dwxYw)N)rmtree
change_cwdTESTFN_UNICODETESTFN_UNENCODABLEcreate_empty_filez1No Unicode filesystem semantics on this platform.cntjj|rtj|yyN)ospathexistsunlink)filenames J/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/test/test_unicode_file.pyremove_if_existsrs#	ww~~h
		( c0eZdZdZdZdZdZdZdZy)TestUnicodeFilesc
|jtjj||jtjj	||jtj
|tj|jtjjtjj||jtjj	tjj||jtj
tjj|tjtj|dtj|dtj|tjtjf|j|||jtjj|tjjtjtj|dk(tjjtjj|\}}tj|}t!j"d|}|Dcgc]}t!j"d|}}|j%||ycc}w)NirNFD)
assertTruer
rrisfileaccessR_OKabspathchmodutimetime_do_copyishglobescapesplitlistdirunicodedata	normalizeassertIn)selfrrbase	file_listfs      r
_do_singlezTestUnicodeFiles._do_singlesx01x01		(BGG45rwwx'@ABrwwx'@AB		"''//(";RWWEF
5!
4 
DIIK568,GGOOH%rwwtyyXAV7WXY7Z'[[	]WW]]277??8#<=
dJJt$	$$UD1>GH[**5!4H	H

dI&IsLc|jtjj|tj||dz|jtjj||jtjj|dztj|dz||jtjj|dz|jtjj|t
j||dztj|dzt
j||dz|jtjj||jtjj|dzt
j|dz||jtjj|dz|jtjj|t
j||dz|jtjj|dztj|dz|jtjj|dzy)Nz.new)rr
rrrenameassertFalseshutilcopyr
movercopy2)r&	filename1	filename2s   rrzTestUnicodeFiles._do_copyish9sy12
		)Y/0	23y6'9:;
		)f$i0	F(:;<y12Iy612
		)f$%Iy612	23y6'9:;I&	2	F(:;<y12	Y	F 23y6'9:;
		)f$%	F(:;<rctjj|rt|tj|	t|5tj}|}tjd|}tjd|}|jtjj||dddtj|y#1swYxYw#tj|wxYw)Nr)r
risdirrmkdirrgetcwdr#r$assertEqualbasenamermdir)r&	make_name
chdir_name
cwd_resultname_results     r
_do_directoryzTestUnicodeFiles._do_directoryVs
77==#9

	 J'
KYY[
'(225*E
)33E;G  !1!1*!=kJ
K
HHY
K
K
HHYs%C(A2C>C(C%!C((C?c&t|t|	|j|tj||jtjj|tj|tjtjz}tj|	|j|tj|y#tj|wxYw#tj|wxYwr	)rrr*r
r
rrropenO_CREATO_WRONLYclose)r&rr)s   r_test_singlezTestUnicodeFiles._test_singlehs"(#	 OOH%IIhBGGNN8445GGHbjj2;;67
	 OOH%IIh
IIh
IIhsC8C9C69Dcf|jtt|jtyyr	)rErr)r&s rtest_single_filesz"TestUnicodeFiles.test_single_fileszs*.))01*rcd}|jt|zt|zt!|jt|zt|zyy)Nz.dir)r?rr)r&exts  rtest_directoriesz!TestUnicodeFiles.test_directoriessL>#-~c/AB)1#51#5
7*rN)	__name__
__module____qualname__r*rr?rErGrJrrrrs '4=: $ $2
	7rr__main__)r
rrr.sysr#unittesttest.support.os_helperrrrrrrsupports_unicode_filenamesencodegetfilesystemencodingUnicodeError	TypeErrorSkipTestrTestCaserrKmainrNrr<module>r[s
++
ww))U7c779:o7x((o7dzHMMOw
)$U h STTUs!BB-