Current Path : /compat/linux/proc/self/root/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 |
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/test/test_resource.pyc |
³ò h”Rc @ su d d k Z d d k l Z d d k Z d d k Z d e i f d „ ƒ YZ d d „ Z e d j o e ƒ n d S( iÿÿÿÿN( t test_supportt ResourceTestc B s5 e Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( c C s_ | i t t i ƒ | i t t i d d ƒ | i t t i ƒ | i t t i d d d ƒ d S( Ni* ( t assertRaisest TypeErrort resourcet getrlimitt setrlimit( t self( ( s. /usr/local/lib/python2.5/test/test_resource.pyt test_args s c C sb y t i t i ƒ \ } } Wn t j o n. X| i t i | ƒ t i t i | | f ƒ d S( N( R R t RLIMIT_FSIZEt AttributeErrort assertEqualt RLIM_INFINITYR ( R t curt max( ( s. /usr/local/lib/python2.5/test/test_resource.pyt test_fsize_ismax s c C sw y t i t i ƒ \ } } Wn t j o nCXz y# t i t i d | f ƒ t } Wn t j o t } n Xt t i d ƒ } z¦ | i d d ƒ yI | i d ƒ | i ƒ x+ t d ƒ D] } t i d ƒ | i ƒ qÁ WWn! t j o | p ‚ qn X| o t i t i | | f ƒ n Wd | i ƒ XWd | o t i t i | | f ƒ n t i t i ƒ Xd S( Ni t wbt Xt Yi gš™™™™™¹?( R R R R R t Truet ValueErrort Falset openR t TESTFNt writet flusht ranget timet sleept IOErrort closet unlink( R R R t limit_sett ft i( ( s. /usr/local/lib/python2.5/test/test_resource.pyt test_fsize_enforced s: !c C s® d } y t i t i ƒ \ } } Wn t j o nt Xy t i t i | | f ƒ Wn t t f j o n Xy t i t i | | f ƒ Wn t t f j o n Xd S( Nl i2 l +ÛO¦ ±tC3’y+v° ( R R R R R t OverflowErrorR ( R t too_bigR R ( ( s. /usr/local/lib/python2.5/test/test_resource.pyt test_fsize_toobigN s c C s† | i t t i ƒ | i t t i d d ƒ t i t i ƒ } t i t i ƒ } y t i t i ƒ } Wn t t f j o n Xd S( Ni* ( R R R t getrusaget RUSAGE_SELFt RUSAGE_CHILDRENt RUSAGE_BOTHR R ( R t usageselft usagechildrent usageboth( ( s. /usr/local/lib/python2.5/test/test_resource.pyt test_getrusage_ s ( t __name__t __module__R R R# R&