ó
úR‹_c           @   ss   d  d l  j Z d  d l Z d e j f d „  ƒ  YZ d „  Z d e j f d „  ƒ  YZ e	 d k ro e j
 ƒ  n  d S(   iÿÿÿÿNt   ExpectedErrorc           B   s   e  Z RS(    (   t   __name__t
   __module__(    (    (    sT   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__issue607.pyR       s   c           C   s   t  j d ƒ d  S(   Niç  (   t   geventt   sleep(    (    (    sT   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__issue607.pyt   f
   s    t   TestKillWithExceptionc           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         C   sM   t  j t ƒ } | j ƒ  | j ƒ  s+ t ‚ t | j ƒ  t  j ƒ sI t ‚ d  S(   N(	   R   t   spawnR   t   killt
   successfult   AssertionErrort
   isinstancet   gett   GreenletExit(   t   selft   g(    (    sT   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__issue607.pyt   test_kill_without_exception   s    
c         C   ss   t  j t ƒ } | j t ƒ | j ƒ  s/ t ‚ |  j t | j ƒ | j	 d  k sW t ‚ t | j t ƒ so t ‚ d  S(   N(   R   R   R   R   R    R	   R
   t   assertRaisesR   t   valuet   NoneR   t	   exception(   R   R   (    (    sT   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__issue607.pyt   test_kill_with_exception   s    c         C   s€   t  j t ƒ } | j d ƒ | j t ƒ | j ƒ  s< t ‚ |  j t | j	 ƒ | j
 d  k sd t ‚ t | j t ƒ s| t ‚ d  S(   Ni    (   R   R   R   t   joinR   R    R	   R
   R   R   R   R   R   R   (   R   R   (    (    sT   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__issue607.pyt&   test_kill_with_exception_after_started   s    (   R   R   R   R   R   (    (    (    sT   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__issue607.pyR      s   			t   __main__(   t   gevent.testingt   testingt	   greentestR   t   ExpectedExceptionR    R   t   TestCaseR   R   t   main(    (    (    sT   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__issue607.pyt   <module>   s   	