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/21585/root/usr/lib/python2.4/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21585/root/usr/lib/python2.4/test/test_support.pyc
mς
‚=5Dc@s\dZedjo
ed‚ndkZdkZdefd„ƒYZdefd„ƒYZdefd	„ƒYZd
efd„ƒYZ	dZ
dZda
d
„Zd„Zd„Zd„Zd„Zdd„ZdZd„ZyedZWnej
o
dZnXeiidƒZdkZeidjo
dZnΟeidjo
dZn΅dZeo§edeƒo
dZ neddƒZ ei!ƒZ"e#edƒpei$ƒdd jo
dZ%qe&d!ƒZ%ye%i'd"ƒWne(j
oqXd#e%GHndZ)ye*ed$ƒZ)Wnie+j
o]ei,i-d%eƒZ.ye*e.d$ƒZ)e.Z[.Wq–e+j
od&ee.fGHq–XnXe)dj	o)e)i/ƒyei0eƒWqΜqΜXn[[)d'kl0Z0e1d(„Z2d)d*„Z3d+„Z4d,„Z5d-„Z6dk7Z7d.fd/„ƒYZ8dd0„Z9d1„Z:dd2„Z;d3„Z<dS(4s7Supporting definitions for the Python regression tests.stest.test_supports3test_support must be imported from the test packageNtErrorcBstZdZRS(s*Base class for regression test exceptions.(t__name__t
__module__t__doc__(((t'/usr/lib/python2.4/test/test_support.pyR	st
TestFailedcBstZdZRS(sTest failed.(RRR(((RRstTestSkippedcBstZdZRS(s!Test skipped.

    This can be raised to indicate that a test was deliberatly
    skipped, but not because a feature wasn't available.  For
    example, if some resource can't be used, such as the network
    appears to be unavailable, this should be raised instead of
    TestFailed.
    (RRR(((RRstResourceDeniedcBstZdZRS(sΰTest skipped because it requested a disallowed resource.

    This is raised when a test calls requires() for a resource that
    has not be enabled.  It is used to distinguish between expected
    and unexpected skips.
    (RRR(((RRsicCs
|adS(N(tstdoutt_original_stdout(R((Rtrecord_original_stdout(scCstptiS(N(R	tsysR(((Rtget_original_stdout,scCs(yti|=Wntj
onXdS(N(RtmodulestnametKeyError(R((Rtunload/scCs³t|ƒdk}x™tiD]Ž}y+|i|ii|||idƒƒWn|i	j
onXy+|i|ii|||idƒƒWq|i	j
oqXqWdS(sm"Forget" a module was ever imported by removing it from sys.modules and
    deleting any .pyc and .pyo files.Ntpyctpyo(
RtmodnametosRtpathtdirnametunlinktjointextsepterror(RRR((Rtforget5s
	
++cCstdj	o
|tjS(sPTest whether a resource is enabled.  Known resources are set by
    regrtest.py.N(t
use_resourcestNonetresource(R((Rtis_resource_enabledGscCsftiƒiiidƒdjodSnt|ƒp+|djod|}nt	|ƒ‚ndS(sΫRaise ResourceDenied if the specified resource is not available.

    If the caller's module is __main__ then automatically return True.  The
    possibility of False being returned occurs when regrtest.py is executing.Rt__main__Ns$Use of the `%s' resource not enabled(
Rt	_getframetf_backt	f_globalstgetRRtmsgRR(RR%((RtrequiresLs"

f9.9999999999999995e-07cCsRt|ƒtdƒjpt|ƒtdƒjo`yRt||ƒ\}}t|ƒt|ƒt}t||ƒ|jodSnWqEqEXn΄t|ƒt|ƒjošt|ƒtfƒtgƒfjouxUttt	|ƒt	|ƒƒƒD]2}t||||ƒ}|djo|SqςqςWt
t	|ƒt	|ƒƒSnt
||ƒS(Nf0.0i(ttypetxtytcoercetabstFUZZtfuzztrangetmintlentitfcmptoutcometcmp(R(R)R1R-R3((RR2\s 2>"
itjavas$testtriscosttestfiles@testts@test-ΰςslatin-1tgetwindowsversioniis'u"@test-\u5171\u6709\u3055\u308c\u308b"tLatin1sgWARNING: The filename %r CAN be encoded by the filesystem.  Unicode filename tests may not be effectivesw+s/tmps6WARNING: tests will fail, unable to write to: %s or %s(sunlinkcCs‹dk}|ii|ƒo|Snti}|ii|ƒg|}x>|D]6}|ii||ƒ}|ii
|ƒo|SqMqMW|S(sΥTry to find a file on sys.path and the working directory.  If it is not
    found the argument passed to the function is returned (this does not
    necessarily signal failure; could still be the legitimate path).N(RRtisabstfileRRtheretdnRtfntexists(R<R=R>RRR?((Rtfindfile»s		stest failedcCs|pt|ƒ‚ndS(s–Verify that condition is true. If not, raise TestFailed.

       The optional argument reason can be given to provide
       a better error text.
    N(t	conditionRtreason(RBRC((RtverifyΙscCs(||jptd||f‚ndS(s$Raise TestFailed if a == b is false.

    This is better than verify(a == b) because, in case of failure, the
    error message incorporates repr(a) and repr(b) so you can see the
    inputs.

    Note that "not (a == b)" isn't necessarily the same as "a != b"; the
    former is tested.
    s%r == %rN(tatbR(RERF((RtvereqΣs	
cCsR|iƒ}|iƒg}|D]}|d|q!~}di|ƒ}d|S(s%Like repr(dict), but in sorted order.s%r: %rs, s{%s}N(tdicttitemstsortt_[1]tpairt	reprpairsRt
withcommas(RHRMRNRIRKRL((Rtsortdictαs
%cCs7yt|ddƒWntj
onXd|GHdS(Ns<string>texecsMissing SyntaxError: "%s"(tcompilet	statementtSyntaxError(RR((Rtcheck_syntaxιs
tBasicTestRunnercBstZd„ZRS(NcCstiƒ}||ƒ|S(N(tunittestt
TestResulttresultttest(tselfRYRX((Rtrunϊs
(RRR[(((RRUωscCstotitiddƒ}n
tƒ}|i|ƒ}|i
ƒp΅t|iƒdjo |i
o|idd}npt|i
ƒdjo |io|i
dd}n:|djo
d}nd|i|if}t|ƒ‚t|ƒ‚ndS(s2Run tests from a unittest.TestSuite-derived class.t	verbosityiiis0errors occurred; run in verbose mode for detailsserrors occurred in %s.%sN(tverboseRVtTextTestRunnerRRtrunnerRUR[tsuiteRXt
wasSuccessfulR0terrorstfailuresterrt	testclassRR%RRR(R`ReRdR_RXR%((Rt	run_suites	
!!

cGs˜tiƒ}xQ|D]I}t|titifƒo|i|ƒq|iti|ƒƒqWt	|ƒdjo|d}nd}t||ƒdS(s1Run tests from unittest.TestCase-derived classes.iiN(
RVt	TestSuiteR`tclassestclst
isinstancetTestCasetaddTestt	makeSuiteR0ReRRf(RhReR`Ri((Rtrun_unittestscCs―dk}|djo
t}nd}ti}tƒt_z@|i|d|ƒ\}}|otd||fƒ‚nWd|t_Xtod|i
|fGHn||fS(s
Run doctest on the given module.  Return (#failures, #tests).

    If optional argument verbosity is not specified (or is None), pass
    test_support's belief about verbosity on to doctest.  Else doctest's
    usual behavior is used (it searches sys.argv for -v).
    NR]s%d of %d doctests faileds,doctest (%s) ... %d tests with zero failures(tdoctestR\RR]RRtsave_stdoutRttestmodtmoduletfttRR(RrR\RpRsRtRo((Rtrun_doctest)s 	

	
cCstidd|ƒiƒ}|S(sΡStrip the stderr of a Python process from potential debug output
    emitted by the interpreter.

    This will typically be run on the result of the communicate() method
    of a subprocess.Popen object.
    s\[\d+ refs\]\r?\n?$R8N(tretsubtstderrtstrip(Rx((Rtstrip_python_stderrGs(=RRtImportErrorRvRt	ExceptionRRRRR]RRR	R
RRRRR&R,R2tunicodethave_unicodet	NameErrortplatformt
startswitht	is_jythonRRtTESTFNRjtTESTFN_UNICODEtgetfilesystemencodingtTESTFN_ENCODINGthasattrR9tTESTFN_UNICODE_UNENCODEABLEtevaltencodetUnicodeEncodeErrortfptopentIOErrorRRt
TMP_TESTFNtcloseRt__file__RARDRGRORTRVRURfRnRuRz(%RGR]RURVRuRRRTR„RR~RDR‚R†RvR,RnRRARRŒRRORRRRƒRzR
RRRRˆR2RfRR&((Rt?s”

		
						
	


(





			
		

Anon7 - 2021