U
    ?hO                     @   s4   d dl mZ d dlmZ dZdZdd Zdd Zd	S )
    )process_str)assert_equalz
python module foo
    <_rd=real,double precision>
    interface
        subroutine <s,d>foosub(tol)
            <_rd>, intent(in,out) :: tol
        end subroutine <s,d>foosub
    end interface
end python module foo
a#  
python module foo
    interface
        subroutine sfoosub(tol)
            real, intent(in,out) :: tol
        end subroutine sfoosub
        subroutine dfoosub(tol)
            double precision, intent(in,out) :: tol
        end subroutine dfoosub
    end interface
end python module foo
c                 C   s   d |  S )zu
    Remove leading and trailing whitespace, and convert internal
    stretches of whitespace to a single space.
     )joinsplit)s r   Z/var/www/html/venv/lib/python3.8/site-packages/numpy/distutils/tests/test_from_template.pynormalize_whitespace   s    r
   c                  C   s&   t t} t| }tt}t|| dS )zRegression test for gh-10712.N)r   pyf_srcr
   expected_pyfr   )ZpyfZnormalized_pyfZnormalized_expected_pyfr   r   r	   test_from_template'   s    r   N)Znumpy.distutils.from_templater   Znumpy.testingr   r   r   r
   r   r   r   r   r	   <module>   s
   