
    /hh                     r    S SK Jr  S SKr " S S\R                  5      r\S:X  a  \R                  " 5         gg)    )generator_stopNc                        \ rS rSrS rS rSrg)
TestPEP479   c                    ^ S mU4S jnU R                  [        S5         [        U" 5       5        S S S 5        g ! , (       d  f       g = f)Nc                      [         eNStopIteration     A/opt/python-3.13.8/usr/lib/python3.13/test/test_generator_stop.pyf1TestPEP479.test_stopiteration_wrapping.<locals>.f       r   c               3       >#    T " 5       v   g 7fr	   r   r   s   r   g1TestPEP479.test_stopiteration_wrapping.<locals>.g
        #I   zgenerator raised StopIteration)assertRaisesRegexRuntimeErrornext)selfr   r   s     @r   test_stopiteration_wrapping&TestPEP479.test_stopiteration_wrapping   s=    	 	##L$DFIF F Fs	   ;
A	c                 d  ^ S mU4S jn [        U" 5       5        U R                  S5        g ! [         aw  nU R                  [	        UR
                  5      [        5        U R                  [	        UR                  5      [        5        U R                  UR                  5         S nAg S nAff = f)Nc                      [         er	   r
   r   r   r   r   9TestPEP479.test_stopiteration_wrapping_context.<locals>.f   r   r   c               3       >#    T " 5       v   g 7fr	   r   r   s   r   r   9TestPEP479.test_stopiteration_wrapping_context.<locals>.g   r   r   zE__cause__, __context__, or __suppress_context__ were not properly set)
r   failr   assertIstype	__cause__r   __context__
assertTrue__suppress_context__)r   r   excr   s      @r   #test_stopiteration_wrapping_context.TestPEP479.test_stopiteration_wrapping_context   s    	 		/I II . /  	6MM$s}}-}=MM$s/?OOC4455	6s   . 
B/A-B**B/r   N)__name__
__module____qualname____firstlineno__r   r+   __static_attributes__r   r   r   r   r      s    /r   r   __main__)
__future__r   unittestTestCaser   r-   mainr   r   r   <module>r7      s5    % /"" /6 zMMO r   