ó
úR_c           @  s  d  d l  m Z d  d l Z e j d sd  d l m Z m Z e e j e d g d e d e d e Z	 e	 j
 d	  \ Z Z e	 j   Z e	 j   d
 k s± t e e e f   e j   d k sØ t e e e f   e d k sd e k sd e k st e e e f   nw e j d d g k rtd  d l Z d  d l Z e j j d e  d   Z e j e  j   n e j d e j f  d S(   iÿÿÿÿ(   t   print_functionNi   (   t   Popent   PIPEt
   subprocesst   stdint   stdoutt   stderrs   hello world
i    s	   11 chars.t    s   sys.excepthookt   Warningt   sysc          C  sB   y t    }  Wn t k
 r) t   }  n Xt d t |    d  S(   Ns	   %s chars.(   t	   raw_inputt	   NameErrort   inputt   printt   len(   t   line(    (    sR   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__issue6.pyt	   printline   s
    s   Invalid arguments: %r(   t
   __future__R    R	   t   argvR   R   R   t
   executablet   __file__t   pt   communicatet   outt   errt   pollt   codet   AssertionErrort   stript   geventt   gevent.monkeyt   monkeyt	   patch_allt   TrueR   t   spawnt   joint   exit(    (    (    sR   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__issue6.pyt   <module>   s    *''<	