ó
úR_c           @  s^   d  d l  m Z d  d l Z d  d l Z d e j f d     YZ e d k rZ e j   n  d S(   i˙˙˙˙(   t   print_functionNt   TestDestroyDefaultLoopc           B  s   e  Z d    Z d   Z RS(   c         C  sj   t  j   t  j j d t  } |  j | j  | j   |  j | j  ~ d d l	 m
 } | d   d  S(   Nt   defaulti˙˙˙˙(   t   set_hub(   t   geventt   get_hubt   configt   loopt   Truet
   assertTrueR   t   destroyt   assertFalset   gevent._hub_localR   t   None(   t   selfR   R   (    (    s`   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__destroy_default_loop.pyt   test_destroy_gc   s    

c         C  sr   t  j j d t  } t  j j d t  } |  j | j  |  j | j  | j   |  j | j  | j   d  S(   NR   (   R   R   R   R   R	   R   R
   R   (   R   t   loop1t   loop2(    (    s`   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__destroy_default_loop.pyt   test_destroy_two'   s    
(   t   __name__t
   __module__R   R   (    (    (    s`   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__destroy_default_loop.pyR      s   	t   __main__(   t
   __future__R    R   t   unittestt   TestCaseR   R   t   main(    (    (    s`   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__destroy_default_loop.pyt   <module>   s
   1