KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21573/root/usr/lib/python2.4/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21573/root/usr/lib/python2.4/test/test_import.pyo
mò
‚=5Dc@sMdklZlZdkZdkZdkZdkZy
dkZWnej
onXedƒ‚dk	Z	d„Z
d„Zeii
deiƒzGeeidƒeiidƒoxdD]ZeeƒqÅWnWdeid=XdkZeidƒZeideŒZd„Zedƒd„Zeƒd„ZeƒdS((sTESTFNs
TestFailedNs3import of RAnDoM should have failed (case mismatch)cCsxxq|tid|tid|tid|tid|dfD]*}tii|ƒoti|ƒqFqFWdS(Ntpytpyctpyotpyws	$py.class(tnametostextseptftpathtexiststremove(RR((t&/usr/lib/python2.4/test/test_import.pytremove_filessFc	Cst|}ttid}tiidƒotd}nttid}t
|dƒ}|dI|IdIJti
dƒ}ti
dƒ}|d	I|IJ|d
I|IJ|iƒz–yttƒ}Wn+tj
o}td||fƒ‚nX|i|jp|i|jo4|GdG|iGH|GdG|iGHtd
|ƒ‚nWdti|ƒXz:yt|ƒWn%tj
o}td|ƒ‚nXWdyti|ƒWntij
onXyti|ƒWntij
onXtit=XdS(NRtjavas	$py.classRtws)# This tests Python's ability to import asfile.ièsa =sb =simport from %s failed: %ss!=s'module loaded (%s) but contents invalids import from .pyc/.pyo failed: %s(tTESTFNtexttsourceRRRtsystplatformt
startswithRtopenRtrandomt	randrangetatbtcloset
__import__tmodtImportErrorterrt
ValueErrortunlinktreloadterrortmodules(	RRRRRRRRR((Rttest_with_extensionsL

 iRtwins.PYs.Pys.pYs.pyws.PYWs.pYwRcBs|eid}e|dƒ}|idƒx!edƒD]}|idƒq:W|idƒ|i	ƒe|dƒ}e
i|ƒ|i	ƒei|ƒe
iidƒd	|dUe
id
=xCd
D];}|ei|}eii|ƒoei|ƒqÈqÈWdS(NRsw+sd = [
ièýs"",
t]trtsimport iÿÿÿÿRR(spycspyo(tmoduleRRtfilenameRRtwritetrangetiRt
py_compiletcompileR RRtappendRtfnameR	(R)RR-RR*R1((Rttest_module_with_large_stackXs(







tlonglistcCsÙttid}t|dƒ}|dIJ|iƒtii	dti
ƒzmxfd
D]^}yttƒ}Wn6tj
o*ttijotd|ƒ‚q²qTXtd	|ƒ‚qTWWdtiidƒttƒXdS(NRRsa = 1/0iiiisdamaged module in sys.moduless#was able to import a damaged module(iii(RRRRRRRRRtinserttcurdirR-RRtZeroDivisionErrorR#t
TestFailedtpopR(RR-RR((Rttest_failing_import_sticksys"

c	Csºttid}t|dƒ}|dIJ|dIJ|iƒtii	dti
ƒz&ttƒ}tti
jotdƒ‚n|idjp|idjotd	ƒ‚nttƒt|dƒ}|d
IJ|dIJ|iƒyt|ƒWntj
onXtdƒ‚ti
itƒ}|djotd
ƒ‚n|idjp|idjotd	ƒ‚nWdtiidƒttƒtti
joti
t=nXdS(NRRsa = 1sb = 2isexpected module in sys.modulesiis!module has wrong attribute valuessa = 10s	b = 20//0s#was able to reload a damaged modules*expected module to still be in sys.modulesi
(RRRRRRRRRR4R5RRR#R7RRRR!R6tgettNoneR8(RRR((Rttest_failing_reload‘s@


 




 
(s.PYs.Pys.pYs.pyws.PYWs.pYw(ttest.test_supportRR7RRRR.tRAnDoMRtdouble_constRR$RR4R5RRRRtimptfind_moduletxtload_moduleR2R9R<(R>R.RRR<R$R9RR@RR?RBR7R2RR((Rt?s<				
				-		
		1

Anon7 - 2021