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.138.101.93
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : test_pkgimport.pyc
�
?��cc@s�ddlZddlZddlZddlZddlZddlZddlmZdejfd��YZ	d�Z
edkr�e
�ndS(i����N(trun_unittestt
TestImportcBs>eZd�Zd�Zd�Zd�Zd�Zd�ZRS(cOsgd|_x1|jtjkr<|jtjtj�7_qW|jd|_tj	j
|||�dS(NtPACKAGE_s.foo(tpackage_nametsystmodulestrandomtchoosetstringtletterstmodule_nametunittesttTestCaset__init__(tselftargstkw((s:/usr/local/python-2.7/lib/python2.7/test/test_pkgimport.pyR
s
	cCs=x6|j|jfD]"}|tjkrtj|=qqWdS(N(RR
RR(RR
((s:/usr/local/python-2.7/lib/python2.7/test/test_pkgimport.pytremove_modulesscCs�tj�|_tjj|j�tjj|j|j�|_	tj
|j	�ttjj|j	dtjd�d�j
�tjj|j	dtjd�|_dS(NR
tpytwtfoo(ttempfiletmkdtempttest_dirRtpathtappendtostjoinRtpackage_dirtmkdirtopentextseptclosetmodule_path(R((s:/usr/local/python-2.7/lib/python2.7/test/test_pkgimport.pytsetUps$cCs�x9tj|j�D]%}tjtjj|j|��qWtj|j�tj|j�|jt	jj
|j�d�t	jj|j�|j�dS(Ni(RtlistdirRtremoveRRtrmdirRtassertNotEqualRtcountR(Rtfile((s:/usr/local/python-2.7/lib/python2.7/test/test_pkgimport.pyttearDowns#cCsmx=dD]5}|j|}tjj|�rtj|�qqWt|jd�}|j|�|j�dS(NtcoR(R!RRtexistsR$RtwriteR (Rtcontentst	extensiont
compiled_pathtf((s:/usr/local/python-2.7/lib/python2.7/test/test_pkgimport.pytrewrite_file&s


cCs!|jd�yt|j�Wntk
r1n
Xtd�|j|jtj�|jt	tj|j
d��d}x,|tt�kr�|t
jtj�7}qzW|j|�yt|j�Wntk
r�n
Xtd�|jd|�t|j�j}|jt||�d�dS(NtforsFailed to induce SyntaxErrorRtasFailed to induce NameError.s%s = 1i(R1t
__import__R
tSyntaxErrortRuntimeErrortassertNotInRRtassertFalsethasattrRtdirt__builtins__RRRR	t	NameErrorRtassertEqualtgetattr(Rtvartmodule((s:/usr/local/python-2.7/lib/python2.7/test/test_pkgimport.pyttest_package_import__semantics/s(

	 

	(t__name__t
__module__R
RR"R)R1RA(((s:/usr/local/python-2.7/lib/python2.7/test/test_pkgimport.pyRs			
				cCstt�dS(N(RR(((s:/usr/local/python-2.7/lib/python2.7/test/test_pkgimport.pyt	test_mainNst__main__(RRRRRRttest.test_supportRRRRDRB(((s:/usr/local/python-2.7/lib/python2.7/test/test_pkgimport.pyt<module>s
HI	
© 2025 GrazzMean