ó
:îÜWQ  c           @   sX   d  d l  Z d  d l j j Z d  d l Z d  d l Z e j j	 j
 d ƒ d „  ƒ Z d S(   iÿÿÿÿNs   sys.platform.startswith('java')c         C   sh  t  j j d ƒ } |  j d ƒ } | j d ƒ t  j j j t j	 t
 | ƒ g ƒ } | j } | ƒ  } | d  k } | sRt j d | f d | d  f ƒ i d t j ƒ  k s¸ t j | ƒ rÇ t j | ƒ n d d 6t j | ƒ d 6t j | ƒ d	 6d
 t j ƒ  k st j d  ƒ rt j d  ƒ n d
 d 6} d i | d 6} t t j | ƒ ƒ ‚ n  d  } } } t  j j | j ƒ | j ƒ  }	 t j d k r­|	 d k r­t  j j d ƒ n  d }
 |	 |
 k } | sZt j d | f d |	 |
 f ƒ i d t j ƒ  k st j |	 ƒ rt j |	 ƒ n d d 6t j |
 ƒ d 6} d i | d 6} t t j | ƒ ƒ ‚ n  d  } }
 d  S(   Nt
   subprocesss   t.pys   import time ; time.sleep(100)t   issC   %(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.poll
}()
} is %(py6)st   proct   py0t   py2t   py4t   Nonet   py6t    s   assert %(py8)st   py8t   win32i    s\   XXX on win32, subprocess.Popen().wait() on a killed process does not yield return value != 0s   !=s   %(py0)s != %(py3)st   rett   py3s   assert %(py5)st   py5(   R   (   sC   %(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.poll
}()
} is %(py6)ss   assert %(py8)s(   s   !=(   s   %(py0)s != %(py3)ss   assert %(py5)s(   t   pyt   testt   importorskipt   joint   writet   stdR    t   Popent   syst
   executablet   strt   pollR   t
   @pytest_art   _call_reprcomparet   @py_builtinst   localst   _should_repr_global_namet	   _safereprt   AssertionErrort   _format_explanationt   processt   killt   pidt   waitt   platformt   skip(   t   tmpdirR    t   tR   t   @py_assert1t   @py_assert3t   @py_assert5t   @py_format7t   @py_format9R   t   @py_assert2t   @py_format4t   @py_format6(    (    sC   /home/ronny/Projects/pytest-dev/py/testing/process/test_killproc.pyt	   test_kill   s.    $	 	   ³      l   (   t   __builtin__R   t   _pytest.assertion.rewritet	   assertiont   rewriteR   R   R   R   t   markt   skipifR1   (    (    (    sC   /home/ronny/Projects/pytest-dev/py/testing/process/test_killproc.pyt   <module>   s     