o 6a@stddlZddlZddlZddlmZmZmZmZddl m Z ddZ Gddde j Z Gd d d e j Zd d ZdS) N)assert_ assert_raises assert_equalassert_string_equal)utilcGstjjtjtf|S)N)ospathjoindirname__file__)arB/usr/lib/python3/dist-packages/numpy/f2py/tests/test_regression.py_path src@*eZdZedddgZejjddZdS)TestIntentInOutsrc regression inout.f90cCsXtjdtjdddd}tt|jj|tjdtjd}|j|t|gddS)N)dtype)rrr)nparangefloat32r ValueErrormodulefoor)selfxrrr test_inouts  zTestIntentInOut.test_inoutN) __name__ __module__ __qualname__rsourcespytestmarkslowr"rrrrrsrc@r)TestNumpyVersionAttributerrrcCs>tt|jdddtt|jjtddttj|jjdS)N__f2py_numpy_version__z3Fortran module does not have __f2py_numpy_version__)msgz&__f2py_numpy_version__ is not a string) rhasattrr isinstancer+strrr __version__)r rrrtest_numpy_version_attribute#s z6TestNumpyVersionAttribute.test_numpy_version_attributeN) r#r$r%rr&r'r(r)r1rrrrr*sr*cCs.tj}t|}dD]}||vsJq dS)N)zfortranobject.czfortranobject.h)rf2py get_includerlistdir)incdir fnames_in_dirfnamerrrtest_include_path2s  r8)rr'numpyr numpy.testingrrrrrrF2PyTestrr*r8rrrrs