;
Μβ"Ic            	   @   s{   d  d l  m Z d  d l Z d  d l Z d  d l Z d  d l Z Gd   d e j  Z d   Z e	 d k o e   n d S(   i    (   u   supportNc             B   s@   |  Ee  Z Gd    d  Z Gd   d  Z d   Z d   Z d S(   c             B   s   |  Ee  Z d  S(   N(   u   __name__u
   __module__(   u
   __locals__(    (    u-   /mit/python/lib/python3.0/test/test_select.pyu   Nope	   s   
u   Nopec             B   s   |  Ee  Z d    Z d S(   c             C   s   d S(   Nu   fileno(    (   u   self(    (    u-   /mit/python/lib/python3.0/test/test_select.pyu   fileno   s    N(   u   __name__u
   __module__u   fileno(   u
   __locals__(    (    u-   /mit/python/lib/python3.0/test/test_select.pyu   Almost   s   
u   Almostc             C   s   |  j  t t j d d d  |  j  t t j |  j   g g  g   |  j  t t j |  j   g g  g   |  j  t t j g  g  g  d  d  S(   Ni   i   i   u   not a number(   u   assertRaisesu	   TypeErroru   selectu   Nopeu   Almost(   u   self(    (    u-   /mit/python/lib/python3.0/test/test_select.pyu   test_error_conditions   s    %%c             C   sj  t  j d  d  d k o# t j o t d t  j  n d  Sd } t j | d  } xd d D]ψ } t j o t d |  n t j | g g  g  |  \ } } } | | | f g  g  g  f k o q` n | | | f | g g  g  f k oU | j	   } t j o t t
 |   n | p t j o t d  n Pq` q` n |  j d | | |  q` W| j   d  S(   Ni   u   winu   macu   os2u   riscosu   Can't test select easily onu?   for i in 0 1 2 3 4 5 6 7 8 9; do echo testing...; sleep 1; doneu   ri    i   i   i   i   i   i
   u	   timeout =u   EOFu'   Unexpected return values from select():(   u   winu   macu   os2u   riscos(   i    i   i   i   i   i   (   N(
   NNNNNNNNNN(   u   sysu   platformu   supportu   verboseu   printu   osu   popenu   Noneu   selectu   readlineu   repru   failu   close(   u   selfu   cmdu   pu   toutu   rfdu   wfdu   xfdu   line(    (    u-   /mit/python/lib/python3.0/test/test_select.pyu   test_select   s0    
 
$"

N(   u   __name__u
   __module__u   Nopeu   Almostu   test_error_conditionsu   test_select(   u
   __locals__(    (    u-   /mit/python/lib/python3.0/test/test_select.pyu   SelectTestCase   s   
	u   SelectTestCasec               C   s   t  j t  t  j   d  S(   N(   u   supportu   run_unittestu   SelectTestCaseu   reap_children(    (    (    u-   /mit/python/lib/python3.0/test/test_select.pyu	   test_main/   s    u   __main__(
   u   testu   supportu   unittestu   selectu   osu   sysu   TestCaseu   SelectTestCaseu	   test_mainu   __name__(    (    (    u-   /mit/python/lib/python3.0/test/test_select.pyu   <module>   s   (	