HEX
Server: Apache
System: FreeBSD www860.sakura.ne.jp 13.0-RELEASE-p14 FreeBSD 13.0-RELEASE-p14 #2: Mon Dec 9 13:54:55 JST 2024 root@www5301.sakura.ne.jp:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
User: yoyo0427 (1306)
PHP: 8.3.8
Disabled: NONE
Upload Files
File: //usr/local/lib/python2.7/test/test_resource.pyo
�
N��ac@svddlZddlmZddlZejd�Zdejfd��YZdd�Z	e
dkrre	�ndS(i����N(ttest_supporttresourcetResourceTestcBs>eZd�Zd�Zd�Zd�Zd�Zd�ZRS(cCs_|jttj�|jttjdd�|jttj�|jttjddd�dS(Ni*(tassertRaisest	TypeErrorRt	getrlimitt	setrlimit(tself((s./usr/local/lib/python2.7/test/test_resource.pyt	test_argsscCsmytjtj�\}}Wntk
r<|jd�nX|jtj|�tjtj||f�dS(NsRLIMIT_FSIZE not available(RRtRLIMIT_FSIZEtAttributeErrortskipTesttassertEqualt
RLIM_INFINITYR(Rtcurtmax((s./usr/local/lib/python2.7/test/test_resource.pyttest_fsize_ismaxs
cCsxytjtj�\}}Wntk
r<|jd�nXzy#tjtjd|f�t}Wntk
r|t}nXt	t
jd�}z�|jdd�yI|jd�|j
�x+td�D]}tjd�|j
�q�WWntk
r|s�qnX|r.tjtj||f�nWd|j�XWd|rctjtj||f�nt
jt
j�XdS(NsRLIMIT_FSIZE not availableitwbtXtYig�������?(RRR	R
RRtTruet
ValueErrortFalsetopenRtTESTFNtwritetflushtrangettimetsleeptIOErrortclosetunlink(RRRt	limit_settfti((s./usr/local/lib/python2.7/test/test_resource.pyttest_fsize_enforceds8








 cCs�d}ytjtj�\}}Wntk
rB|jd�nXytjtj||f�Wnttfk
rynXytjtj||f�Wnttfk
r�nXdS(Nl
i2sRLIMIT_FSIZE not availablel +�O��tC3�y+v�(RRR	R
RRt
OverflowErrorR(Rttoo_bigRR((s./usr/local/lib/python2.7/test/test_resource.pyttest_fsize_toobigLs
cCs�|jttj�|jttjdd�tjtj�}tjtj�}ytjtj�}Wnttfk
rnXdS(Ni*(	RRRt	getrusagetRUSAGE_SELFtRUSAGE_CHILDRENtRUSAGE_BOTHRR
(Rt	usageselft
usagechildrent	usageboth((s./usr/local/lib/python2.7/test/test_resource.pyttest_getrusage\scCsdytjtj�}Wntk
r6|jd�nXddd��Y}tjtj|��dS(NsRLIMIT_CPU not availabletBadSequencecBseZd�Zd�ZRS(cSsdS(Ni((R((s./usr/local/lib/python2.7/test/test_resource.pyt__len__nscSs,|dkr"tttd���St�dS(Niii@B(ii(tlenttupleRt
IndexError(Rtkey((s./usr/local/lib/python2.7/test/test_resource.pyt__getitem__ps(t__name__t
__module__R1R6(((s./usr/local/lib/python2.7/test/test_resource.pyR0ms	((RRt
RLIMIT_CPUR
RR(RtlimitsR0((s./usr/local/lib/python2.7/test/test_resource.pyttest_setrusage_refcounths
(R7R8RRR$R'R/R;(((s./usr/local/lib/python2.7/test/test_resource.pyR	s		
	.		cCstjt�dS(N(Rtrun_unittestR(tverbose((s./usr/local/lib/python2.7/test/test_resource.pyt	test_mainwst__main__(tunittestttestRRt
import_moduleRtTestCaseRtNoneR>R7(((s./usr/local/lib/python2.7/test/test_resource.pyt<module>sn