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

name : test_importhooks.pyo
�
?��cc@s�ddlZddlZddlZddlZddlmZdZdZdZdZ	dZ
edZeed	d
�Z
eed	d
�Zeeed	d
�Zee
eed	d
�Zeeed	d
�Zee	ed	d
�Zee
eed	d
�ZdZddd
��YZdefd��YZdefd��YZddd��YZdd d��YZdd!d��YZdejfd��YZdefd��YZd�Zedkr�e�ndS("i����N(ttest_supportsHdef get_name():
    return __name__
def get_file():
    return __file__
simport sub
sfrom . import sub
sfrom .... import sub
s'from __future__ import absolute_import
sreloaded = True
s<???>texecs!!!_test_!!!tTestImportercBs�eZieefd6eefd6eefd6eefd6eefd6eefd6eefd6eefd6ee	fd6eefd	6eefd
6Z
ed�Zd�Z
dd
�Zd�ZRS(thooktestmodulethooktestpackageshooktestpackage.subshooktestpackage.sub.subbershooktestpackage.oldabsshooktestpackage.newabsshooktestpackage.newrels!hooktestpackage.sub.subber.subestshooktestpackage.futreltsubtreloadmodulecCs"|tkrt�n||_dS(N(t	test_pathtImportErrortpath(tselfR	((s</usr/local/python-2.7/lib/python2.7/test/test_importhooks.pyt__init__4s	cCs
t�dS(N(tNotImplementedError(R
((s</usr/local/python-2.7/lib/python2.7/test/test_importhooks.pyt_get__path__;scCs||jkr|SdSdS(N(tmodulestNone(R
tfullnameR	((s</usr/local/python-2.7/lib/python2.7/test/test_importhooks.pytfind_module>scBst|j|\}}ejj|ej|��}d|jj|_||_|re|j	�|_
n||jU|S(Ns<%s>(Rtsyst
setdefaulttimpt
new_modulet	__class__t__name__t__file__t
__loader__R
t__path__t__dict__(R
Rtispkgtcodetmod((s</usr/local/python-2.7/lib/python2.7/test/test_importhooks.pytload_moduleDs	N(Rt
__module__tFalsettest_cotTruettest2_oldabs_cottest2_newabs_cottest2_newrel_cottest2_deeprel_cottest2_futrel_coRRRR
RRR(((s</usr/local/python-2.7/lib/python2.7/test/test_importhooks.pyR$s 









	tMetaImportercBseZd�ZRS(cCsgS(N((R
((s</usr/local/python-2.7/lib/python2.7/test/test_importhooks.pyR
Ps(RR R
(((s</usr/local/python-2.7/lib/python2.7/test/test_importhooks.pyR)OstPathImportercBseZd�ZRS(cCs
|jgS(N(R	(R
((s</usr/local/python-2.7/lib/python2.7/test/test_importhooks.pyR
Ts(RR R
(((s</usr/local/python-2.7/lib/python2.7/test/test_importhooks.pyR*Sst
ImportBlockercBs,eZdZd�Zdd�Zd�ZRS(s�Place an ImportBlocker instance on sys.meta_path and you
    can be sure the modules you specified can't be imported, even
    if it's a builtin.cGstj|�|_dS(N(tdicttfromkeystnamestoblock(R
R.((s</usr/local/python-2.7/lib/python2.7/test/test_importhooks.pyR\scCs||jkr|SdS(N(R.R(R
RR	((s</usr/local/python-2.7/lib/python2.7/test/test_importhooks.pyR^scCs
td�dS(Ns
I dare you(R(R
R((s</usr/local/python-2.7/lib/python2.7/test/test_importhooks.pyRbsN(RR t__doc__RRRR(((s</usr/local/python-2.7/lib/python2.7/test/test_importhooks.pyR+Xs	t
ImpWrappercBs eZdd�Zdd�ZRS(cCs5|dk	r(tjj|�r(t�n||_dS(N(RtosR	tisdirR(R
R	((s</usr/local/python-2.7/lib/python2.7/test/test_importhooks.pyRhs	cCs�|jd�d}||kr2|jdkr2dS|jdkrJd}n|jg}ytj||�\}}}Wntk
r�dSXt|||�S(Nt.i����(tsplitR	RRRRt	ImpLoader(R
RR	tsubnametfiletfilenametstuff((s</usr/local/python-2.7/lib/python2.7/test/test_importhooks.pyRms	
N(RR RRR(((s</usr/local/python-2.7/lib/python2.7/test/test_importhooks.pyR0fsR5cBseZd�Zd�ZRS(cCs||_||_||_dS(N(R7R8R9(R
R7R8R9((s</usr/local/python-2.7/lib/python2.7/test/test_importhooks.pyR~s		cCsGtj||j|j|j�}|jr:|jj�n||_|S(N(RRR7R8R9tcloseR(R
RR((s</usr/local/python-2.7/lib/python2.7/test/test_importhooks.pyR�s
!		(RR RR(((s</usr/local/python-2.7/lib/python2.7/test/test_importhooks.pyR5|s	tImportHooksBaseTestCasecBseZd�Zd�ZRS(cCsJtj|_tj|_tj|_tjj�tjj�|_dS(N(	RR	t	meta_patht
path_hookstpath_importer_cachetclearRtcopytmodules_before(R
((s</usr/local/python-2.7/lib/python2.7/test/test_importhooks.pytsetUp�s




cCsX|jtj(|jtj(|jtj(tjj�tjj�tjj|j�dS(N(	R	RR<R=R>R?RtupdateRA(R
((s</usr/local/python-2.7/lib/python2.7/test/test_importhooks.pyttearDown�s




(RR RBRD(((s</usr/local/python-2.7/lib/python2.7/test/test_importhooks.pyR;�s	tImportHooksTestCasecBs8eZdd�Zd�Zd�Zd�Zd�ZRS(cCs�ddl}ddl}ddl}ddl}|j|j�d�|j|j�d�|j|jj�d�|j|jjj�d�|r�|j|j|�|j|j|�|j|jj|�|j|jjj|�nt	t
ftjd<ddl
}|jt|d��t	tftjd<tj|�|jt|d��ddl}|j|jj�d�|j|jj|j�ddl}|j|jj�d	�|j|jj|j�ddljjj}|j|j�d
�|j|j|j�ddl}|j|jj�d�|j|jj|j�ddl}|j|j�d�ddl}|j|jj�d
�|j|jj|�dS(Ni����RRshooktestpackage.subshooktestpackage.sub.subberRtreloadedshooktestpackage.oldabsshooktestpackage.newrels!hooktestpackage.sub.subber.subestshooktestpackage.futrelRshooktestpackage.newabs(RRthooktestpackage.subthooktestpackage.sub.subbertassertEqualtget_nameRtsubberRR!R"RRRtassertFalsethasattrt	reload_coRtreloadt
assertTruethooktestpackage.oldabstoldabsthooktestpackage.newreltnewrelt!hooktestpackage.sub.subber.subesttsubestthooktestpackage.futreltfutrelthooktestpackage.newabstnewabs(R
timporterRRRRVR((s</usr/local/python-2.7/lib/python2.7/test/test_importhooks.pyt
doTestImports�sb




cCs*t�}tjj|�|j|�dS(N(R)RR<tappendR\(R
ti((s</usr/local/python-2.7/lib/python2.7/test/test_importhooks.pyttestMetaPath�s	cCs.tjjt�tjjt�|j�dS(N(RR=R]R*R	RR\(R
((s</usr/local/python-2.7/lib/python2.7/test/test_importhooks.pyttestPathHook�scCs@d}tj|�tjjt|��|jtt|�dS(Nt
exceptions(	RtunloadRR<R]R+tassertRaisesRt
__import__(R
tmname((s</usr/local/python-2.7/lib/python2.7/test/test_importhooks.pyttestBlocker�s
c
Cs�t�}tjj|�tjjt�d	}xW|D]O}|jd�d}x3tjj�D]"}|j|�r_tj|=q_q_Wq6Wt	j
dtf��;x3|D]+}t|t
�t�dg�}|jq�WWdQXdS(
Ntcolorsysturlparsesdistutils.cores
compiler.miscR3is.The compiler package is deprecated and removedt	__dummy__(RgRhsdistutils.cores
compiler.misc(R0RR<R]R=R4Rtkeyst
startswithRtcheck_warningstDeprecationWarningRdtglobalstlocalsR(R
R^tmnamesRetparenttntm((s</usr/local/python-2.7/lib/python2.7/test/test_importhooks.pyttestImpWrapper�s	
	

N(RR RR\R_R`RfRt(((s</usr/local/python-2.7/lib/python2.7/test/test_importhooks.pyRE�s
;			cCstjt�dS(N(Rtrun_unittestRE(((s</usr/local/python-2.7/lib/python2.7/test/test_importhooks.pyt	test_main�st__main__((((( RRR1tunittestttestRttest_srctabsimptrelimpt
deeprelimptfutimpt
reload_srctcompileR"RNR$R%R&R'R(RRR)R*R+R0R5tTestCaseR;RERvR(((s</usr/local/python-2.7/lib/python2.7/test/test_importhooks.pyt<module>s<+^	
© 2025 GrazzMean