a ;jgoã@s4ddlmZddlmZdZdZdd„Zdd„Zd S) é)Ú process_str)Ú assert_equalzÙ python module foo <_rd=real,double precision> interface subroutine foosub(tol) <_rd>, intent(in,out) :: tol end subroutine 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 cCsd | ¡¡S)zu Remove leading and trailing whitespace, and convert internal stretches of whitespace to a single space. ú )ÚjoinÚsplit)Ús©rúG/usr/local/lib/python3.9/site-packages/numpy/f2py/tests/test_pyf_src.pyÚnormalize_whitespacesr cCs&ttƒ}t|ƒ}ttƒ}t||ƒdS)zRegression test for gh-10712.N)rÚpyf_srcr Ú expected_pyfr)ZpyfZnormalized_pyfZnormalized_expected_pyfrrr Útest_from_template'sr N)Znumpy.f2py._src_pyfrZ numpy.testingrr r r r rrrr Ús