Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
test
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/test/test_ioctl.pyo
mō =5Dc @ s, d k Z d k l Z l Z d k Z d k Z y d k Z d k Z Wn e j o e d n Xe e d p e d n y e d d Z e i Wn e j o e d n Xy d k Z Wn e j o d Z n Xd e i f d YZ d Z e d j o e n d S( N( s TestSkippeds run_unittests No fcntl or termios modulet TIOCGPGRPs% termios module doesn't have TIOCGPGRPs /dev/ttyt rs Unable to open /dev/ttyt IoctlTestsc B s# t Z d Z d Z d Z RS( Nc C s| t i t i d f } t d d } t i | t i d } t i d | d } | i | | j d | | f d S( Ni s /dev/ttyR s t is %s not in %s( t ost getpgrpt getsidt idst opent ttyt fcntlt ioctlt termiosR R t structt unpackt rpgrpt selft assert_( R R R R R ( ( t% /usr/lib/python2.4/test/test_ioctl.pyt test_ioctl s c C sĄ d k } | i d d g } t i t i d f } t d d } t i | t i | d } | d } | i | d | i | | j d | | f d S( NR i s /dev/ttyR i s %s not in %s( t arrayt bufR R R R R R R R R R R R R t assertEqualsR ( R R R R R R R ( ( R t test_ioctl_mutate s c C s t p t d n t i \ } } zÏ t i d j o t i } t i d @} n. t i } t i d t i d t i \ } t i | t i d d } t i d d d d d } t i | | | } t i | | | } t i | | | Wd t i | t i | Xd S( Ns pty module requiredi l ĸĸ R t It i t HHHHiP i ( t ptyt TestSkippedt openptyt mfdt sfdR t TIOCSWINSZt set_winsz_opcode_maybe_negt set_winsz_opcode_posR R t packR R t TIOCGWINSZt saved_winszt our_winszt new_winszR t close( R R% R R! R' R&