config root man

Current Path : /usr/local/lib/python2.5/test/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/test/test_support.pyo

hRc@sdZedjo
ednddkZdefdYZdefdYZd	efd
YZdefdYZd
Z	dZdada
dadZdZdZdZdZdZddZdddZdZdZyed
ZWnej
o
dZnXeiidZddkZei djo
dZ!nei djo
dZ!ndZ!eoe"deo
d Z#ned d!Z#ei$Z%e&ed"pei'd#d$jo
dZ(q2e)d%Z(ye(i*d&Wne+j
oq2Xd'e(GHndZ,ye-e!d(Z,Wnie.j
o]ei/i0d)e!Z1ye-e1d(Z,e1Z![1Wqe.j
od*e!e1fGHqXnXe,dj	oe,i2ee!n[[,e3d+Z4d,d-Z5d.Z6d/Z7d0Z8d1Z9d2Z:dDZ;d3e;Z<d$e<Z=d4e<Z>d5dEd6YZ?e?Z@d7ZAd8e;d9ZBd8e;d:ZCd;ZDddkEZEd<dFd=YZFdd>ZGd?ZHdd@ZIdAZJdBZKdCZLdS(Gs7Supporting definitions for the Python regression tests.stest.test_supports3test_support must be imported from the test packageiNtErrorcBseZdZRS(s*Base class for regression test exceptions.(t__name__t
__module__t__doc__(((s-/usr/local/lib/python2.5/test/test_support.pyRst
TestFailedcBseZdZRS(sTest failed.(RRR(((s-/usr/local/lib/python2.5/test/test_support.pyRstTestSkippedcBseZdZRS(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(((s-/usr/local/lib/python2.5/test/test_support.pyRstResourceDeniedcBseZdZRS(sTest 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(((s-/usr/local/lib/python2.5/test/test_support.pyRsiicCs
|adS(N(t_original_stdout(tstdout((s-/usr/local/lib/python2.5/test/test_support.pytrecord_original_stdout*scCstptiS(N(RtsysR(((s-/usr/local/lib/python2.5/test/test_support.pytget_original_stdout.scCs(yti|=Wntj
onXdS(N(R
tmodulestKeyError(tname((s-/usr/local/lib/python2.5/test/test_support.pytunload1scCs7ddk}y|i|Wntj
onXdS(Ni(tostunlinktOSError(tfilenameR((s-/usr/local/lib/python2.5/test/test_support.pyR7s
cCsvt|ddk}xYtiD]N}t|ii|||idt|ii|||idq WdS(sm"Forget" a module was ever imported by removing it from sys.modules and
    deleting any .pyc and .pyo files.iNtpyctpyo(RRR
tpathRtjointextsep(tmodnameRtdirname((s-/usr/local/lib/python2.5/test/test_support.pytforget>s

$cCstdj	o
|tjS(sPTest whether a resource is enabled.  Known resources are set by
    regrtest.py.N(t
use_resourcestNone(tresource((s-/usr/local/lib/python2.5/test/test_support.pytis_resource_enabledJscCsftiiiiddjodSnt|p+|djod|}nt|ndS(sRaise 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(R
t	_getframetf_backt	f_globalstgetRRR(Rtmsg((s-/usr/local/lib/python2.5/test/test_support.pytrequiresOs"

ti1c	Csddk}ddk}x|ddddgD]}y<|i||f|djo|id}n|SWq.|ij
o7\}}||ijontid|IJq.Xq.Wtd	dS(
sTry to bind the sock to a port.  If we are running multiple
    tests and we don't try multiple ports, the test can fails.  This
    makes the test more robust.iNi&i(iiis6  WARNING: failed to listen on port %d, trying anothers unable to find port to listen on(	tsocketterrnotbindtgetsocknameterrort
EADDRINUSER
t
__stderr__R(tsockthosttpreferred_portR(R)tportterrR%((s-/usr/local/lib/python2.5/test/test_support.pyt	bind_port]s

gư>cCsRt|tdjpt|tdjo`yRt||\}}t|t|t}t|||jodSnWqEqEXnt|t|jot|tdtgfjouxUttt|t|D]2}t||||}|djo|SqqWtt|t|Snt||S(Ngi((	ttypetcoercetabstFUZZtrangetmintlentfcmptcmp(txtytfuzztitoutcome((s-/usr/local/lib/python2.5/test/test_support.pyR<{s 2>"
tjavas$testtriscosttestfiles@tests@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 %scCsddk}|ii|o|Snti}|ii|g|}x>|D]6}|ii||}|ii|o|SqPqPW|S(sTry 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).iN(RRtisabsR
RRtexists(tfilethereRRtdntfn((s-/usr/local/lib/python2.5/test/test_support.pytfindfiles	stest failedcCs|pt|ndS(sVerify that condition is true. If not, raise TestFailed.

       The optional argument reason can be given to provide
       a better error text.
    N(R(t	conditiontreason((s-/usr/local/lib/python2.5/test/test_support.pytverifyscCs(||jptd||fndS(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(R(tatb((s-/usr/local/lib/python2.5/test/test_support.pytvereqs
cCsR|i}|ig}|D]}|d|q!~}di|}d|S(s%Like repr(dict), but in sorted order.s%r: %rs, s{%s}(titemstsortR(tdictRUt_[1]tpairt	reprpairst
withcommas((s-/usr/local/lib/python2.5/test/test_support.pytsortdicts

%cCs7yt|ddWntj
onXd|GHdS(Ns<string>texecsMissing SyntaxError: "%s"(tcompiletSyntaxError(t	statement((s-/usr/local/lib/python2.5/test/test_support.pytcheck_syntaxs
c	Csddk}ddk}ddk}|i|didd}xV|ii|iigD]<}|ii||}|ii|ot	|Sq]q]Wt
dtd|IJ|i||\}}t	|S(Niit/turlfetchs	fetching %s ...(
turllibturlparsetos.pathtsplitRtcurdirtpardirRRItopenR&Rturlretrieve(turlRdReRRRRMt_((s-/usr/local/lib/python2.5/test/test_support.pytopen_urlresources 
csfd}|S(Ncs1fd}i|_i|_|S(Nc
sy.ddk}t|}|i|}Wn&tj
o
nBd}}n1Xx-D]%}y|i||PWq^q^Xq^Wz||SWd|o|o|i||nXdS(Ni(tlocaletgetattrt	setlocaletAttributeErrorR(targstkwdsRotcategorytorig_localetloc(tcatstrtfunctlocales(s-/usr/local/lib/python2.5/test/test_support.pytinner!s&(t	func_nameR(RyR{(RzRx(Rys-/usr/local/lib/python2.5/test/test_support.pyt	decorator s((RxRzR}((RzRxs-/usr/local/lib/python2.5/test/test_support.pytrun_with_localesiit_DummycBseZdZRS(cCs|S(N((tselfRAtj((s-/usr/local/lib/python2.5/test/test_support.pyt__getslice__Ks(RRR(((s-/usr/local/lib/python2.5/test/test_support.pyRJscCsddk}hdd<td<td<dtd<}|id||i|iB}|djotd|fntt	|i
d	||i
d
i}|a|t
jo
t
}n|td	jotd|fn|adS(Niitktmtgtts(\d+(\.\d+)?) (K|M|G|T)b?$sInvalid memory limit %riis$Memory limit %r too low to be useful(tret_1Mt_1Gtmatcht
IGNORECASEtVERBOSERt
ValueErrortinttfloattgrouptlowertreal_max_memusetMAX_Py_ssize_tt_2Gt
max_memuse(tlimitRtsizesRtmemlimit((s-/usr/local/lib/python2.5/test/test_support.pytset_memlimitOs"			
2

icsfd}|S(sQDecorator for bigmem tests.

    'minsize' is the minimum useful size for the test (in arbitrary,
    test-interpreted units.) 'memuse' is the number of 'bytes per size' for
    the test, or a good estimate of it. 'overhead' specifies fixed overhead,
    independant of the testsize, and defaults to 5Mb.

    The decorator tries to guess a good value for 'size' and passes it to
    the decorated test function. If minsize * memuse is more than the
    allowed memory use (as defined by max_memuse), the test is skipped.
    Otherwise, minsize is adjusted upward to use up to max_memuse.
    cs7fd}|_|_|_|S(Ncstp)d}|i|dtjnftt}|jo-totiidifndSnt	|dt}||S(Niis)Skipping %s because of memory constraint
i2(
RtfailIfRRtverboseR
tstderrtwriteRtmax(Rtmaxsize(tftmemusetminsizetoverhead(s-/usr/local/lib/python2.5/test/test_support.pytwrapperss#
(RRR(RR(RRR(Rs-/usr/local/lib/python2.5/test/test_support.pyR}rs
			((RRRR}((RRRs-/usr/local/lib/python2.5/test/test_support.pyt
bigmemtestes
csfd}|S(Ncs4fd}|_|_|_|S(Ncsitp
d}nL}to>t|jo-totiidifndSn||S(Nis)Skipping %s because of memory constraint
(RRR
RRR(RR(RRtsize(s-/usr/local/lib/python2.5/test/test_support.pyRs
(RRR(RR(RRR(Rs-/usr/local/lib/python2.5/test/test_support.pyR}s

			((RRRR}((RRRs-/usr/local/lib/python2.5/test/test_support.pytprecisionbigmemtestscsfd}|S(s0Decorator for tests that fill the address space.csDttjo)totiidifq@n|SdS(Ns)Skipping %s because of memory constraint
(RRRR
RRR(R(R(s-/usr/local/lib/python2.5/test/test_support.pyRs

((RR((Rs-/usr/local/lib/python2.5/test/test_support.pytbigaddrspaceteststBasicTestRunnercBseZdZRS(cCsti}|||S(N(tunittestt
TestResult(Rttesttresult((s-/usr/local/lib/python2.5/test/test_support.pytruns
(RRR(((s-/usr/local/lib/python2.5/test/test_support.pyRscCstotitidd}n
t}|i|}|ipt|i	djo |i
o|i	dd}npt|i
djo |i	o|i
dd}n:|djo
d}nd|i|i
f}t|t|ndS(s2Run tests from a unittest.TestSuite-derived class.t	verbosityiiis0errors occurred; run in verbose mode for detailsserrors occurred in %s.%sN(RRtTextTestRunnerR
RRRt
wasSuccessfulR;terrorstfailuresRRRR(tsuitet	testclasstrunnerRR3R%((s-/usr/local/lib/python2.5/test/test_support.pyt	run_suites	
!!

cGsti}xQ|D]I}t|titifo|i|q|iti|qWt|djo|d}nd}t||dS(s1Run tests from unittest.TestCase-derived classes.iiN(	Rt	TestSuitet
isinstancetTestCasetaddTestt	makeSuiteR;RR(tclassesRtclsR((s-/usr/local/lib/python2.5/test/test_support.pytrun_unittestscCsddk}|djo
t}nd}ti}tt_z@|i|d|\}}|otd||fnWd|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).
    iNRs%d of %d doctests faileds,doctest (%s) ... %d tests with zero failures(	tdoctestRRR
RRttestmodRR(tmoduleRRtsave_stdoutRR((s-/usr/local/lib/python2.5/test/test_support.pytrun_doctests

	
cCs(ddk}t|it|ifS(Ni(t	threadingR;t_activet_limbo(R((s-/usr/local/lib/python2.5/test/test_support.pytthreading_setupscCsddk}ddk}d}d}x?t|i|jo(||jo|d7}|idq'Wd}x?t|i|jo(||jo|d7}|idqoWdS(Nii
iig?(RttimeR;RtsleepR(t
num_activet	num_limboRRt
_MAX_COUNTtcount((s-/usr/local/lib/python2.5/test/test_support.pytthreading_cleanups#
#
cCsuddk}t|doUd}xLto@y1|i||i\}}|djoPnWq%Pq%Xq%WndS(sUse this function at the end of test_main() whenever sub-processes
    are started.  This will help ensure that no extra children (zombies)
    stick around to hog resources and create problems when looking
    for refleaks.
    iNtwaitpidi(RthasattrtTrueRtWNOHANG(Rtany_processtpidtstatus((s-/usr/local/lib/python2.5/test/test_support.pyt
reap_childrens	
	i(((MRRtImportErrorR
t	ExceptionRRRRRRRRRRR	RRRRRR&R4R8R<tunicodethave_unicodet	NameErrortplatformt
startswitht	is_jythonRRtTESTFNRtTESTFN_UNICODEtgetfilesystemencodingtTESTFN_ENCODINGRRFtTESTFN_UNICODE_UNENCODEABLEtevaltencodetUnicodeEncodeErrortfpRjtIOErrorRRt
TMP_TESTFNtcloset__file__RNRQRTR\RaRnR~RRRt_4GRRRRRRRRRRRRRR(((s-/usr/local/lib/python2.5/test/test_support.pys<module>s


							








					%



	'		 		

Man Man