%PDF- %PDF-
Direktori : /usr/local/lib/python2.7/test/ |
Current File : //usr/local/lib/python2.7/test/test_fcntl.pyo |
ó Nêáac @ sÑ d Z d d l Z d d l Z d d l Z d d l Z d d l m Z m Z m Z m Z m Z m Z e d ƒ Z d „ Z e ƒ Z d d d „ ƒ YZ d e j f d „ ƒ YZ d „ Z e d k rÍ e ƒ n d S( s] Test program for the fcntl C module. OS/2+EMX doesn't support the file locking operations. iÿÿÿÿN( t verboset TESTFNt unlinkt run_unittestt import_modulet cpython_onlyt fcntlc C si t j j d ƒ r d } n+ y t j Wn t k r? d } n Xd } t j j d ƒ sg t j d k rÇ t j d ƒ d k r‹ d } d } n d } d } t j | | | d d d d t j d ƒ } n} t j d k r t j d t j d d d d d d ƒ } nD t j d k rd } n, t j d | d t j d d d d d ƒ } | ret red Gt | ƒ GHqen | S( Nt atheost qqt llt netbsdt freebsdt openbsdt bsdost darwint li t it lxxxxt hhi t aix3t aix4s hp-uxBt unixware7t hhllliit os2emxs struct.pack: ( R R R R ( R R s hp-uxBR ( R ( t syst platformt startswitht ost O_LARGEFILEt AttributeErrort structt calcsizet packR t F_WRLCKt NoneR t repr( t start_lent off_tt pid_tt lockdata( ( s+ /usr/local/lib/python2.7/test/test_fcntl.pyt get_lockdata s2 * ,t BadFilec B s e Z d „ Z d „ Z RS( c C s | | _ d S( N( t fn( t selfR* ( ( s+ /usr/local/lib/python2.7/test/test_fcntl.pyt __init__7 s c C s | j S( N( R* ( R+ ( ( s+ /usr/local/lib/python2.7/test/test_fcntl.pyt fileno9 s ( t __name__t __module__R, R- ( ( ( s+ /usr/local/lib/python2.7/test/test_fcntl.pyR) 6 s t TestFcntlc B sM e Z d „ Z d „ Z d „ Z d „ Z d „ Z e d „ ƒ Z d „ Z RS( c C s d | _ d S( N( R"