Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.134.86.250
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : test_shutil.pyc
�
?��cc@sddlZddlZddlZddlZddlZddlZddlZddlZddlZddl	m
Z
ddlmZmZm
Z
mZddlZddlZddlmZddlmZmZmZedZy"ddlZddlZeZWnek
r'eZnXyddlZWnek
rQe ZnXy"ddl!Z!ddlZeZ"Wnek
r�e
d�Z"nXdej#fd	��YZ$d
ej#fd��YZ%dej#fd
��YZ&d�Z'e(dkr�e'�ndS(i����N(tfind_executable(tmake_archivetregister_archive_formattunregister_archive_formattget_archive_formats(ttest_support(tTESTFNtcheck_warningstcaptured_stdoutt2tzipt
TestShutilcBs�eZd�Zd�Zdd�Zd�Zd�Zeje	e
d�d�ejej
d d	kd
�eje	e
d�o�e
j�dkd
�d����Zd�Zd�Zd�Zd�Ze	e
d�r�d�Zd�Zneje	e
d�d�d��Zeje	e
d�d�d��Zeje	e
d�ofe	ed�ofe	ed�d�d��Zejed�d ��Zd!�Zd"d#�Zejed$�ejed%�d&�d'���Zeje d(�d)��Z!eje d(�ejed*�d+�d,���Z"eje d(�ejed-�d.�d/���Z#d0�Z$ejed$�d1��Z%ejed$�eje&d2�d3���Z'd4�Z(d5�Z)ejed$�d6��Z*d7�Z+RS(8cCs tt|�j�g|_dS(N(tsuperRtsetUpttempdirs(tself((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyR
-scCsOtt|�j�x5|jrJ|jj�}tj|tjdk�qWdS(Ntnttcygwin(RR(	RRttearDownRtpoptshutiltrmtreetostname(Rtd((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyR1stxxxcCs\t|ttf�r*tjj|�}nt|d�}z|j|�Wd|j�XdS(sWWrites a file in the given path.


        path can be a string or a sequence.
        twN(	t
isinstancetlistttupleRtpathtjointopentwritetclose(RRtcontenttf((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyt
write_file7scCs tj�}|jj|�|S(sjCreate a temporary directory that will be cleaned up.

        Returns the path of the directory.
        (ttempfiletmkdtempRtappend(RR((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyR'EscCs&tj�}|jttj|�dS(N(R&tmktemptassertRaisestOSErrorRR(Rtfilename((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_rmtree_errorsMstchmodsrequires os.chmod()iRs2This test can't be run on Cygwin (issue #1071513).tgeteuidis9This test can't be run reliably as root (issue #1076467).cCs�d|_tjt�tjjtd�|_t|jd�}|j�tj	t�j
}tj	|j�j
}tj|jt	j�tjtt	j�t
jtd|j�|j|jdd�tjt|�tj|j|�t
jt�dS(NitaRtonerroris1Expected call to onerror function did not happen.(t
errorStateRtmkdirRRRt	childpathR R"tstattst_modeR.tS_IREADRRtcheck_args_to_onerrortassertEqual(RR$told_dir_modetold_child_mode((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyt
test_on_errorRs	

cCs�|jdkr�|tjkr4|j||j�n&|j|tjd�|j|t�|jt	|dt
��d|_nF|j|tj�|j|t�|jt	|dt
��d|_dS(Nis+func must be either os.remove or os.listdirii(R2RtremoveR9R4tassertIstlistdirRt
assertTruet
issubclassR+trmdir(Rtfunctargtexc((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyR8oscCsLtj�\}}tj|�j�|jttj|�tj	|�dS(N(
R&tmkstempRtfdopenR"R*R+RRR=(RthandleR((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_rmtree_dont_delete_file�sc
CsFd�}d�}tj�}tjjtj�d�}|tjj|d�d�tjtjj|d��|tjj|dd�d�z�tj||�|jtjj	tjj|d���|jtjj
tjj|d���|jtjj	tjj|dd���|tjj|d��}|j|d�|tjj|dd��}|j|d�Wdx~tjj|d�tjj|d�tjj|dd�tjj|dd�fD](}tjj|�r�tj
|�q�q�WxB|tjj|�fD](}tjj|�rtj|�qqWXdS(NcSs*t|d�}|j|�|j�dS(NR(R R!R"(RtdataR$((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyt
write_data�s
cSs&t|�}|j�}|j�|S(N(R treadR"(RR$RJ((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyt	read_data�s
tdestinationstest.txtt123ttest_dirt456(R&R'RRRR3RtcopytreeR@tisfiletisdirR9texistsR=tdirnameR(RRKRMtsrc_dirtdst_dirtactualR((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_copytree_simple�s8		((
c	CsTd�}d�}tjj}tjj}tj�}z�|tj�d�}|||d�d�|||d�d�tj||d��|||dd�d�tj||d	��|||d	d�d�tj||d	d
��tj||d	d��|||d	d
d�d�|||d	dd�d�z�tjd
d	�}tj	||d|�|j
|||d���|j
|||d���|j
|||d	���Wdtjj|�r�tj|�nXz�tjd
d�}tj	||d|�|j
|||d���|j
|||d	d���|j
|||d	d
���Wdtjj|�r�tj|�nXzfd�}tj	||d|�|j
|||d	dd���|j
|||d	d
���Wdtjj|�r$tj|�nXWdtj|�tjtjj|��XdS(NcSs*t|d�}|j|�|j�dS(NR(R R!R"(RRJR$((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyRK�s
cSs&t|�}|j�}|j�|S(N(R RLR"(RR$RJ((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyRM�s
RNstest.txtROstest.tmpRPRQt	test_dir2tsubdirtsubdir2stest.pys*.tmptignoressubdir*cSs�g}x�|D]}tjj||�}tjj|�r`|j�ddkr`|j|�q
tjj|�ddkr
|j|�q
q
W|S(Ni����R\s.py(RRRRTtsplitR(tsplitext(tsrctnamestresRR((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyt_filter�s
(
RRRRUR&R'R3Rtignore_patternsRRR@RRV(	RRKRMRRURWRXtpatternsRd((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_copytree_with_exclude�sV		! $	$
tsymlinkcCs\tjt�tjjtd�}tjjtd�}z�t|d�}|jd�|j�tj||�|j	t
jt
j||�t|d��}|j
|j�d�WdQXtj|�tjd|�|j	t
jt
j||�t|d��}|j
|j�d�WdQXtj|�Wdyt
jt�Wntk
rVnXXdS(NtcheesetshopRtcheddartr(RR3RRRR R!R"tlinkR*RtErrortcopyfileR9RLR=RhRR+(RRatdstR$((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyt'test_dont_copy_file_onto_link_to_itselfs*




cCs�tjt�zatjjtd�}tjjtd�}tj|�tj||�|jttj	|�Wdtj	tdt
�XdS(NRiRjt
ignore_errors(RR3RRRRhR*R+RRtTrue(RRaRp((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_rmtree_on_symlink-s

tmkfifosrequires os.mkfifo()cCs^tjt�z<|jtjtjtt�|jtjtjtt�Wdtj	t�XdS(N(
RRuRR*RtSpecialFileErrorRotTESTFN2t__file__R=(R((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_copyfile_named_pipe:s
cCstjt�z�tjjtd�}tj|�tjj|d�}tj|�ytjtt�Wn`tj	k
r�}|j
d}|jt|�d�|d\}}}|jd||�nX|j
d�Wdtjtdt�tjtdt�XdS(NR\tmypipeiis`%s` is a named pipes$shutil.Error should have been raisedRr(RR3RRRRuRRRRwRntargsR9tlentfailRRs(RR\tpipeteterrorsRaRpt	error_msg((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_copytree_named_pipeEs 



tchflagst
EOPNOTSUPPtENOTSUPs)requires os.chflags, EOPNOTSUPP & ENOTSUPcCs�|j�}tjj|d�}tjj|d�}|j|d�|j|d�d�}tj}zrx9tjtjfD]%}||�t_t	j
||�q~W|tjtj�t_|jtt	j
||�Wd|t_XdS(Ntfile1tfile2Rcst����fd�}|S(Ncs��_��dS(N(terrno(Rtflags(terrtex(s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyt_chflags_raiserhs	(R+(R�R�((R�R�s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pytmake_chflags_raiseres	(
R'RRRR%R�R�R�R�RtcopystatR*R+(RttmpdirR�R�R�told_chflagsR�((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyt-test_copystat_handles_harmless_chflags_errorsZs		s
requires zlibc	Cs�|jd�\}}|j�}tj|�tjj|�}tjjtjj|�d�}tj	|��,tjj
|�}t|d|d�}WdQX|j||d�|j
tjj|��|j
tj|��tj|d��5}|jt|j��dddd	d
dg�WdQXtj	|��t|d|d�}WdQX|j||d
�|j
tjj|��|j
tj|��tj|d��5}|jt|j��dddd	d
dg�WdQXdS(Nttarchivetgztart.s.tar.gzsr:gzs./file1s./file2s./subs./sub/file3s./sub2ttars.tarRl(t
_create_filesR'RRBRRVRtbasenametsupportt
change_cwdtabspathRR9R@RSttarfilet
is_tarfileR tsortedtgetnames(	Rtroot_dirtbase_dirttmpdir2twork_dirt
rel_base_namet	base_namettarballttf((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_make_tarballws0
!		cCs<tj|��'}|j�}|j�t|�SWdQXdS(N(R�R R�tsortR(RRR�Rb((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyt_tarinfo�s
tdistcCs�|j�}tjj||�}tjj|�sCtj|�n|j|dfd�|j|dfd�tjtjj|d��|j|ddfd�tjtjj|d��|r�|j|dfd�n||fS(NR�RR�tsubtfile3tsub2touter(R'RRRRTtmakedirsR%R3(RR�R�R�((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyR��ss
Requires zlibR�sNeed the tar command to runcCsr|j�\}}tjj|j�d�}t|d||�}|j||d�|jtjj|��tjj|d�}ddd|g}t	j
|d|�|jtjj|��|j|j|�|j|��t|d||�}|j||d�|jtjj|��t|d||d	t�}|j||d�|jtjj|��dS(
NR�R�s.tar.gzsarchive2.tarR�s-cftcwds.tartdry_run(
R�RRRR'RR9R@RSt
subprocesst
check_callR�Rs(RR�R�R�R�ttarball2ttar_cmd((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_tarfile_vs_tar�s""	sNeed zip support to runc	Cs�|j�\}}|j�}tj|�tjj|�}tjjtjj|�d�}tj	|��)tjj
|�}t|d|�}WdQX|j||d�|j
tjj|��|j
tj|��tj|��8}|jt|j��dddddd	d
g�WdQXtj|�tj	|��,tjj
|�}t|d||�}WdQX|j||d�|j
tjj|��|j
tj|��tj|��5}|jt|j��dddddd	g�WdQXdS(NR�R
s.zipsdist/s
dist/file1s
dist/file2s	dist/sub/sdist/sub/file3s
dist/sub2/R�(R�R'RRBRRVRR�R�R�R�RR9R@RStzipfilet
is_zipfiletZipFileR�tnamelisttunlink(	RR�R�R�R�R�R�Rctzf((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_make_zipfile�s6
!		
	R
sNeed the zip command to runc
Cs-|j�\}}tjj|j�d�}t|d||�}|j||d�|jtjj|��tjj|d�}dddd|g}t	j
|d|�|jtjj|��tj|��}|j
�}WdQXtj|��}|j
�}	WdQX|jt|�t|	��dS(NR�R
s.zipsarchive2.zips-qs-rR�(R�RRRR'RR9R@RSR�R�R�R�R�R�(
RR�R�R�R�tarchive2tzip_cmdR�Rbtnames2((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_zipfile_vs_zip�stunzipsNeed the unzip command to runc		Cs|j�\}}tjj|j�d�}t|d||�}|j||d�|jtjj|��dd|g}t	j
|��|ytj|dtj
�WnZtjk
r}|j}d|kr�|jd�nd	}|j|j||��nXWdQXdS(
NR�R
s.zipR�s-ttstderrsunrecognized option: tsunzip doesn't support -ts{}

**Unzip Output**
{}(R�RRRR'RR9R@RSR�R�R�tcheck_outputtSTDOUTtCalledProcessErrortoutputtskipTestR}tformat(	RR�R�R�R�R�REtdetailstmsg((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_unzip_zipfiles	cCs;|j�}tjj|d�}|jtt|d�dS(NR�R(R'RRRR*t
ValueErrorR(RR�R�((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_make_archive'sc	CsFtr/tjd�d}tjd�d}n
d}}|j�\}}tjj|j	�d�}t
|d||d|d|�}|jtjj|��t
|d||�}|jtjj|��t
|d||d|d|�}|jtjj|��t
|d||dddd	�}|jtjj|��dS(
NitrootR�R
townertgroupR�t	kjhkjhkjgtoihohoh(
tUID_GID_SUPPORTtgrptgetgrgidtpwdtgetpwuidR�RRRR'RR@RS(RR�R�R�R�R�Rc((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_make_archive_owner_group,s"
	sRequires grp and pwd supportc	
Cs|j�\}}tjj|j�d�}tjd�d}tjd�d}t	j
|��&t|d|dd|d|�}WdQX|jtjj
|��tj|�}zAx:|j�D],}|j|jd�|j|jd�q�WWd|j�XdS(NR�iR�R�R�R�(R�RRRR'R�R�R�R�R�R�RR@RSR�R t
getmembersR9tuidtgidR"(	RR�R�R�R�R�tarchive_nameR�tmember((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_tarfile_root_ownerGscCs�tj�}d�}td|gd�zKytddd|j��Wntk
r[nX|jtj�|�Wdtd�XdS(Nc_s
t��dS(N(tRuntimeError(R{tkw((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyt_breaks`sRsxxx fileR�(RtgetcwdRRR't	ExceptionR9R(Rtcurrent_dirR�((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_make_archive_cwd^s	
cCsp|j�}tj�}zCtj|�|jtdd�d�|jtjjd��Wdtj|�XdS(NttestR�stest.tar(	R'RR�tchdirR9RR@RRS(RR�t	saved_dir((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_make_tarfile_in_curdirms
cCsp|j�}tj�}zCtj|�|jtdd�d�|jtjjd��Wdtj|�XdS(NR�R
stest.zip(	R'RR�R�R9RR@RRS(RR�R�((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_make_zipfile_in_curdirxs
c	Cs�|jttdd�|jttdd�d�|jttdd�d	d
g�tdd�dgd�gt�D]\}}|^qw}|jd|�td�gt�D]\}}|^q�}|jd|�dS(NRicSstS(N(tx(((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyt<lambda>�R�cSstS(N(R�(((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyR��R�iicSstS(N(R�(((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyR��R�sxxx file(ii(iii(ii(R*t	TypeErrorRRtassertInRtassertNotIn(RRtparamstformats((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_register_archive_format�s
"
"(,t__name__t
__module__R
RR%R'R-tunittestt
skipUnlessthasattrRtskipIftsystplatformR/R<R8RIRZRgRqRtRyR�R�R�tzlibR�R�R�RR�tZIP_SUPPORTR�R�R�R�R�R�R�R�R�R�R�(((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyR+sX				$			-	Q	
$$$	&			tTestMovecBs�eZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zejejjd
�d��Zd�Zd�Zd�Zd�ZRS(cCs�d}tj�|_tj�|_tjj|j|�|_tjj|j|�|_y@tjdtjj	t
��|_tjj|j|�|_Wnt
k
r�d|_nXt|jd��}|jd�WdQXdS(Ntfootdirtwbtspam(R&R'RWRXRRRtsrc_filetdst_fileRVRxtdir_other_fst
file_other_fsR+tNoneR R!(RR,R$((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyR
�s	

cCsKxD|j|j|jfD]*}y|r8tj|�nWqqXqWdS(N(RWRXRRR(RR((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyR�scCst|d��}|j�}WdQXtj||�t|d��}|j||j��WdQX|jtjj|��dS(Ntrb(	R RLRtmoveR9tassertFalseRRRU(RRaRptreal_dstR$tcontents((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyt_check_move_file�scCsattj|��}tj||�|j|ttj|���|jtjj|��dS(N(	R�RR?RR
R9RRRU(RRaRpRR
((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyt_check_move_dir�scCs |j|j|j|j�dS(N(RRR(R((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_move_file�scCs |j|j|j|j�dS(N(RRRXR(R((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_move_file_to_dir�scCs9|js|jd�n|j|j|j|j�dS(Ns%dir on other filesystem not available(RR�RRR(R((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_move_file_other_fs�s	cCs9|js|jd�n|j|j|j|j�dS(Ns%dir on other filesystem not available(RR�RRR(R((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_move_file_to_dir_other_fs�s	cCsItj�}z|j|j||�Wdytj|�WnnXXdS(N(R&R)RRWRR(RRX((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyt
test_move_dir�scCsk|js|jd�ntjd|j�}z|j|j||�Wdytj|�WnnXXdS(Ns%dir on other filesystem not availableR(RR�R&R)RRWRR(RRX((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_move_dir_other_fs�s	cCs>|j|j|jtjj|jtjj|j���dS(N(RRWRXRRRR�(R((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_move_dir_to_dir�scCsW|js|jd�n|j|j|jtjj|jtjj|j���dS(Ns%dir on other filesystem not available(RR�RRWRRRR�(R((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_move_dir_to_dir_other_fs�s	cCsH|j|jtjj|jtjj|jtjj|j���dS(N(RRWRRtsepRXRR�(R((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_move_dir_sep_to_dir�ssrequires os.path.altsepcCsH|j|jtjj|jtjj|jtjj|j���dS(N(RRWRRtaltsepRXRR�(R((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_move_dir_altsep_to_dir�scCs?t|jd��WdQX|jtjtj|j|j�dS(NR(R RR*RRnR
RRX(R((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyt"test_existing_file_inside_dest_dirscCs;tjj|jd�}|jtjtj|j|�dS(Ntbar(RRRRWR*RRnR
(RRp((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_dont_move_dir_in_itselfscCs�tjt�zqxjdgD]_\}}tjjt|�}tjjt|�}|jtj||�dd||f�qWWdtjtdt	�XdS(Ntsrcdirssrcdir/destR�s?_destinsrc() wrongly concluded that dst (%s) is not in src (%s)Rr(Rssrcdir/dest(
RR3RRRR@Rt
_destinsrcRRs(RRaRp((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_destinsrc_false_negative
s
cCs�tjt�ztxmddgD]_\}}tjjt|�}tjjt|�}|jtj||�dd||f�qWWdtjtdt	�XdS(	NRssrc/dests
srcdir.newR�s;_destinsrc() wrongly concluded that dst (%s) is in src (%s)Rr(Rssrc/dest(Rs
srcdir.new(
RR3RRRRRR RRs(RRaRp((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_destinsrc_false_positives
(R�R�R
RRRRRRRRRRRRR�R�RRRRRRR!R"(((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyR��s$										
			!			tTestCopyFilecBsceZeZdefd��YZd�Zd�Zd�Zd�Z	d�Z
d�Zd�ZRS(	tFauxcBsDeZeZdZeZeed�Zd�Z	d�Z
d�ZRS(cCs||_||_dS(N(t_raise_in_exitt_suppress_at_exit(Rt
raise_in_exittsuppress_at_exit((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyt__init__.s	cGsdS(NR�((RR{((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyRL1scCs
t|_dS(N(Rst_entered(R((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyt	__enter__3scCs:|||f|_|jr3t|_td��n|jS(NsCannot close(t_exited_withR%Rst_raisedtIOErrorR&(Rtexc_typetexc_valtexc_tb((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyt__exit__5s
		N(R�R�tFalseR*RR,R-RsR)RLR+R2(((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyR$*s		cCs|jrt`ndS(N(t_deleteRR (R((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyR<s	cCs|t_t|_dS(N(RR RsR4(RRC((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyt_set_shutil_open@s	cCs6dd�}|j|�|jttjdd�dS(NRlcSs+|dkrtd��nds't�dS(NtsrcfilesCannot open "srcfile"i(R.tAssertionError(R,tmode((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyt_openEsR6tdestfile(R5R*R.RRo(RR9((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_w_source_open_failsDs
cs�|j��d�fd�}|j|�tjdd�|j�j�|j�jdtk�|j�jdj	d�dS(	NRlcs;|dkr�S|dkr+td��nds7t�dS(NR6R:sCannot open "destfile"i(R.R7(R,R8(R6(s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyR9Rs
R6R:iisCannot open "destfile"(sCannot open "destfile"(
R$R5RRoR@R*R,R.R9R{(RR9((R6s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_w_dest_open_failsNs
cs�|j��|jt��d��fd�}|j|�tjdd�|j�j�|j�j�|j�j�|j�jdt	k�|j
�jdjd�dS(	NRlcs0|dkr�S|dkr �Sds,t�dS(NR6R:i(R7(R,R8(R:R6(s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyR9fs
R6R:iisCannot close(sCannot close(R$RsR5RRoR@R*R-R,R.R9R{(RR9((R:R6s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_w_dest_close_failsas
cs�|jt��|j��d��fd�}|j|�|jttjdd�|j�j�|j�j�|j	�j
�|j�jddk�|j�j
�dS(NRlcs0|dkr�S|dkr �Sds,t�dS(NR6R:i(R7(R,R8(R:R6(s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyR9|s
R6R:i(
R$RsR5R*R.RRoR@R*RR-R,R(RR9((R:R6s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_w_source_close_failsws
	cCs�tj�|_tjjtjj|j�tjj|j�j��}|j	|j|�z0t
j|j|�|jtjj
|��Wdtjj|�r�tj|�nXdS(N(R&R'RWRRRRVR�tuppertassertNotEqualRR
R@RTRURB(RRX((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyttest_move_dir_caseinsensitive�s	(
R�R�R3R4tobjectR$RR5R;R<R=R>RA(((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyR#&s			
			cCstjttt�dS(N(R�trun_unittestRR�R#(((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyt	test_main�st__main__()R�RR&R�R5Rtos.pathR�R�tdistutils.spawnRRRRRR�twarningsR�RR�ttest.test_supportRRRRwR�R�RsR�tImportErrorR3R�RR�R�tTestCaseRR�R#RDR�(((s7/usr/local/python-2.7/lib/python2.7/test/test_shutil.pyt<module>sN"







��l�z	
© 2025 GrazzMean