ó
ú$]c           @   sB   d  d l  m Z d  d l m Z d Z d Z d „  Z d „  Z d S(   iÿÿÿÿ(   t   process_str(   t   assert_equalsÙ   
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
s#  
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 j  |  j ƒ  ƒ S(   su   
    Remove leading and trailing whitespace, and convert internal
    stretches of whitespace to a single space.
    t    (   t   joint   split(   t   s(    (    sG   lib/python2.7/site-packages/numpy/distutils/tests/test_from_template.pyt   normalize_whitespace   s    c          C   s5   t  t ƒ }  t |  ƒ } t t ƒ } t | | ƒ d S(   s   Regression test for gh-10712.N(   R    t   pyf_srcR   t   expected_pyfR   (   t   pyft   normalized_pyft   normalized_expected_pyf(    (    sG   lib/python2.7/site-packages/numpy/distutils/tests/test_from_template.pyt   test_from_template'   s    N(   t   numpy.distutils.from_templateR    t   numpy.testingR   R   R   R   R   (    (    (    sG   lib/python2.7/site-packages/numpy/distutils/tests/test_from_template.pyt   <module>   s
   	