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_poll.pyc |
łň hRc @ s d d k Z d d k Z d d k Z d d k Z d d k l Z l Z l Z l Z y e i Wn e j o e d n Xd Z d Z d Z d Z d Z e e e d S( i˙˙˙˙N( t verifyt verboset TestSkippedt TESTFNs- select.poll not defined -- skipping test_pollc C s= g } x0 | D]( \ } } | | @o | i | q q W| S( N( t append( t readyt flagt matcht fdt mode( ( s* /usr/local/lib/python2.5/test/test_poll.pyt find_ready_matching s c C sé d GHt i } d } d } t | } g } g } h } h } xz t | D]l } t i \ } } | i | t i | i | t i | i | | i | | | | <| | | <qN Wx| o| i } t | t i } | p t d n t i | } t i | | | i } t | t i } | p t d n t i | } t i | | } t t | | j | GHt i | | t i | | i | | | i | | i | | qÁ Wt d GHd S( si Basic functional test of poll object Create a bunch of pipe and test that poll works with them. s Running poll test 1i s This is a test.s no pipes ready for writings no pipes ready for readings Poll test 1 completeN( t selectt pollt lent ranget ost pipet registert POLLINt POLLOUTR R t RuntimeErrort randomt choicet writet readR t closet unregistert removet poll_unit_tests( t pt NUM_PIPESt MSGt MSG_LENt readerst writerst r2wt w2rt it rdt wrR t ready_writerst ready_readerst buf( ( s* /usr/local/lib/python2.5/test/test_poll.pyt test_poll1 sR c C s= d } y t i | Wn t j o n Xt i } | i | | i } t | d | t i f j t t d } | i } t i } | i | | i } t | d d | j | i | i } t | d | t i f j t i t t i } y | i | Wn t j o n Xd GHy | i | Wn t j o n Xd GHt i } y | i d Wn t j o n Xd GHt i } d d d Y} d d d Y} y | i | d Wn t j o n Xd GHy | i | d Wn t j o n Xd GHd S( Ni* i t ws+ Bogus register call did not raise TypeErrors- Bogus unregister call did not raise TypeErrori s, Bogus unregister call did not raise KeyErrort Nopec B s e Z RS( ( t __name__t __module__( ( ( s* /usr/local/lib/python2.5/test/test_poll.pyR- u s t Almostc B s e Z d Z RS( c S s d S( Nt fileno( ( t self( ( s* /usr/local/lib/python2.5/test/test_poll.pyR1 y s ( R. R/ R1 ( ( ( s* /usr/local/lib/python2.5/test/test_poll.pyR0 x s s( expected TypeError exception, not raised( ( ( R R t OSErrorR R R R t POLLNVALt openR R1 t unlinkt TypeErrorR t KeyError( t FDR t rt fR t pollsterR- R0 ( ( s* /usr/local/lib/python2.5/test/test_poll.pyR D sb c C s> d GHd } t i | d } t i } | i | t i xě d d D]ŕ } t o d G| GHn | i | } | g j o qG n | d \ } } | t i @o) | i } | d j o d GHqG qG qG | t i @oE | i } t o t | GHn | p t o d GHn PqG qG qG d G| GHqG W| i d GHd S( Ns Running poll test 2s? for i in 0 1 2 3 4 5 6 7 8 9; do echo testing...; sleep 1; doneR: i ič iĐ i i@ i>