-í
éķ<c       sI   d  Z  d k Z d k Z d k l Z d   Z d   Z e   e   d S(   s.   Test script for popen2.py
   Christian Tismer
N(   s   TestSkippedc     s~   d GHt  i d  d j o
 t d j o t d  n y d k l } Wn  t j
 o d k l }  n Xd  k } | i	   d  S(   Ns   Test popen2 module:i   s   beoss   __main__s+   popen2() doesn't work during import on BeOS(   s   popen(   s   fork(
   s   syss   platforms   __name__s   TestSkippeds   oss   popens   ImportErrors   forks   popen2s   _test(   s   forks   popen2s   popen(    (    s&   /usr/lib/python2.2/test/test_popen2.pys   main s    !	c  	   sŪ  d GHd  k  } d } d } t i d j o
 d } n | i   } d GHt i  |  \ } } | i	 |  | i
   | i   } | i   | j o t d | | f   n d GHy t i | g  \ } } }  Wn t i |  \ } } }  n X| i	 |  | i
   | i   } | i   | j o t d | | f   n |  i   } | o t d	 |   n x | i D] } | i   qwW| i o t d
   n d GHd  S(   Ns   Testing os module:s   cats   ab cd
s   nts   mores   testing popen2...s   wrote %s read %ss   testing popen3...s   unexected %s on stderrs   _active not emptys   All OK(   s   popen2s   cmds   teststrs   oss   names   strips   expecteds   ws   rs   writes   closes   reads   gots
   ValueErrors   popen3s   es   _actives   insts   wait(	   s   es   ws   cmds   popen2s   rs   insts   teststrs   expecteds   got(    (    s&   /usr/lib/python2.2/test/test_popen2.pys   _test! sB    	


 
(   s   __doc__s   oss   syss   test_supports   TestSkippeds   mains   _test(   s   syss   mains   _tests   TestSkippeds   os(    (    s&   /usr/lib/python2.2/test/test_popen2.pys   ? s   				&