ó
u‘Ec           @   s=   d  d l  m Z d  d l m Z d e j f d „  ƒ  YZ d S(   iÿÿÿÿ(   t   unittest(   t   defert   TestBleedingc           B   s   e  Z d  Z d „  Z RS(   s+  This test creates an unhandled Deferred and leaves it in a cycle.
    
    The Deferred is left in a cycle so that the garbage collector won't pick it
    up immediately.  We were having some problems where unhandled Deferreds in
    one test were failing random other tests. (See #1507, #1213)
    c         C   sF   y d d Wn t  k
 r+ t j ƒ  } n X| g } | j | ƒ d  S(   Ni   i    (   t   ZeroDivisionErrorR   t   failt   append(   t   selft   ft   l(    (    s<   /usr/lib/python2.7/dist-packages/twisted/trial/test/weird.pyt   test_unhandledDeferred   s    	(   t   __name__t
   __module__t   __doc__R	   (    (    (    s<   /usr/lib/python2.7/dist-packages/twisted/trial/test/weird.pyR      s   N(   t   twisted.trialR    t   twisted.internetR   t   TestCaseR   (    (    (    s<   /usr/lib/python2.7/dist-packages/twisted/trial/test/weird.pyt   <module>   s   