o
    go                     @   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   T/var/www/visachat/venv/lib/python3.10/site-packages/numpy/f2py/tests/test_pyf_src.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   )pyfnormalized_pyfnormalized_expected_pyfr   r   r	   test_from_template'   s   r   N)numpy.f2py._src_pyfr   numpy.testingr   r   r   r
   r   r   r   r   r	   <module>   s   