1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
U
P±d¯ã@sfddlZddlZddlZddlmZGdd„dejƒZGdd„dejƒZGdd    „d    ejƒZ    d
d „Z
dS) éNé)Úutilc@s.eZdZe dddd¡gZejjdd„ƒZ    dS)ÚTestIntentInOutÚtestsÚsrcÚ
regressionú    inout.f90cCsbtjdtjdddd…}t t|jj|¡tjdtjd}|j |¡t |dddg¡s^t    ‚dS)Né©Zdtypeéér)
ÚnpÚarangeÚfloat32ÚpytestZraisesÚ
ValueErrorÚmoduleÚfooÚallcloseÚAssertionError)ÚselfÚx©rúWd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\numpy/f2py/tests/test_regression.pyÚ
test_inout s
 zTestIntentInOut.test_inoutN)
Ú__name__Ú
__module__Ú __qualname__rÚgetpathÚsourcesrÚmarkÚslowrrrrrr    src@s.eZdZe dddd¡gZejjdd„ƒZ    dS)ÚTestNegativeBoundsrrZnegative_boundszissue_20853.f90cCs^t d¡}d}d}dd„}|jj|||d|||ƒ…d}tjdtjd}t ||¡sZt‚dS)    Né iúÿÿÿécSs ||dS)Nrr)ZxlÚxhrrrÚubound$sz0TestNegativeBounds.test_negbound.<locals>.ubound)Úis_Zie_Zarré r
)r rrrrrr)rZxvecZxlowZxhighr&ÚrvalZexpvalrrrÚ test_negbounds
 
ÿz TestNegativeBounds.test_negboundN)
rrrrrrrr r!r*rrrrr"sr"c@s.eZdZe dddd¡gZejjdd„ƒZ    dS)ÚTestNumpyVersionAttributerrrrcCs8t|jdƒst‚t|jjtƒs"t‚tj|jjks4t‚dS)NÚ__f2py_numpy_version__)ÚhasattrrrÚ
isinstancer,Ústrr Ú __version__)rrrrÚtest_numpy_version_attribute1sz6TestNumpyVersionAttribute.test_numpy_version_attributeN)
rrrrrrrr r!r1rrrrr+,sr+cCs.tj ¡}t |¡}dD]}||kst‚qdS)N)zfortranobject.czfortranobject.h)r Zf2pyZ get_includeÚosÚlistdirr)ÚincdirZ fnames_in_dirÚfnamerrrÚtest_include_path>s
 
r6) r2rÚnumpyr ÚrZF2PyTestrr"r+r6rrrrÚ<module>s