ó
úR_c           @  sķ   d  d l  m Z d  d l Z d  d l m Z e j   d  d l Z d  d l m Z d  d l m	 Z	 m
 Z
 d  d l j Z d   Z d e j f d     YZ e d	 k rē e j   n  d S(
   iĸĸĸĸ(   t   print_functionN(   t   monkey(   t   Process(   t   Popent   PIPEc         C  s   t  j |   d  S(   N(   t   geventt   sleep(   t	   sleep_sec(    (    sT   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__issue600.pyt   f   s    t   TestIssue600c           B  s2   e  Z e j Z e j d   d    Z d   Z RS(   t   hangsc         C  sI   t  t j d g d t d t } t j d  | j   t j d  d  S(   Ns   -Vt   stdoutt   stderri    (   R   t   syst
   executableR   R   R   t   communicate(   t   selft   p(    (    sT   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__issue600.pyt   test_invoke   s    !
c         C  sF   t  d t d d  } | j   t j d   | j d  Wd  QXd  S(   Nt   targett   argsg      ā?i   i
   (   g      ā?(   R   R   t   startR   t   Timeoutt   join(   R   R   (    (    sT   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__issue600.pyt   test_process#   s    
(   t   __name__t
   __module__t	   greentestt   LARGE_TIMEOUTt   __timeout__t   skipOnLibuvOnPyPyOnWinR   R   (    (    (    sT   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__issue600.pyR	      s   	t   __main__(   t
   __future__R    R   R   t	   patch_allR   t   multiprocessingR   t
   subprocessR   R   t   gevent.testingt   testingR   R   t   TestCaseR	   R   t   main(    (    (    sT   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__issue600.pyt   <module>   s   
	