mς
­fIc           @   s   d  k  l Z l Z l Z l Z d k Z d k Z y e i d Z Wn e	 j
 o d Z n Xe i
 i e  p e d   n d   Z d   Z e   d S(   (   s   verboses   findfiles
   TestFaileds   TestSkippedNt   AUDIODEVs
   /dev/audios   no audio device found!c         C   sw   t  |  d  } | i   } | i   y t i  d  } Wn! t i j
 o } t
 |  n X| i |  | i   d  S(   Nt   rt   w(   t   opent   patht   fpt   readt   datat   closet   sunaudiodevt   at   errort   msgt
   TestFailedt   write(   R   R   R
   R   R   (    (    t2   /mit/python/lib/python2.4/test/test_sunaudiodev.pyt   play_sound_file   s    
c           C   s   t  t d   d  S(   Ns   audiotest.au(   R   t   findfile(    (    (    R   t   test   s    (   t   test.test_supportt   verboseR   R   t   TestSkippedR	   t   ost   environt   audiodevt   KeyErrorR   t   existsR   R   (	   R   R   R   R   R   R   R   R	   R   (    (    R   t   ?   s   				