K i5ddlZddlZddlZddlZddlmZddlm Z Gdde jZ Gdde jZ Gdd e jZ Gd d e jZGd d e jZdZGdde jZGdde jZGdde jZGdde jZej*j,dZej*j,ej*j1ej2dvddZej*j,Gdde jZy)N)utilcpeZdZejddddgZejjdZ y)TestIntentInOuttestssrc regression inout.f90cltjdtjddd}tjt |j j|tjdtj}|j j|tj|gdsJy)Ndtype)rrr) nparangefloat32pytestraises ValueErrormodulefooallclose)selfxs f/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/numpy/f2py/tests/test_regression.py test_inoutzTestIntentInOut.test_inoutss IIarzz *3Q3 / j$++//15 IIarzz * {{1i(((N) __name__ __module__ __qualname__rgetpathsourcesrmarkslowrrrrr s7t||GUL+FGG [[))rrcpeZdZejddddgZejjdZ y)TestDataOnlyMultiModulerrr z datonly.f90c|jjjdk(sJ|jjjdk(sJd}|jj ddk(sJy)Ndii)rdatonly max_valuedatmax_simple_subroutine)rint_ins r test_mdatz!TestDataOnlyMultiModule.test_mdat s^{{"",,333{{##t+++{{,,Q/4777rN) rr r!rr"r#rr$r%r2r&rrr(r(s7t||GUL-HIG [[88rr(cpeZdZejddddgZejjdZ y)TestModuleWithDerivedTyperrr zmod_derived_types.f90c|jjddk(sJ|jjddk(sJy)N n)rno_type_subroutinetype_subroutiners r test_mtypesz%TestModuleWithDerivedType.test_mtypes,s<{{--b1S888{{**2.#555rN) rr r!rr"r#rr$r%r<r&rrr4r4(s8t||GUL:QRSG [[66rr4cpeZdZejddddgZejjdZ y)TestNegativeBoundsrrnegative_boundszissue_20853.f90c tjd}d}d}d}|jj|||d|||}tjdtj}tj ||sJy)N ic||z dzS)Nrr&)xlxhs ruboundz0TestNegativeBounds.test_negbound..ubound?s7Q; r)is_ie_arr r )rrrrrr)rxvecxlowxhighrFrvalexpvals r test_negboundz TestNegativeBounds.test_negbound6ssyy}  {{4U !5&u"5682RZZ0{{4(((rN) rr r!rr"r#rr$r%rPr&rrr>r>2s9t||GU,=?PQRG [[ ) )rr>cpeZdZejddddgZejjdZ y)TestNumpyVersionAttributerrr r ct|jdsJt|jjtsJt j |jjk(sJy)N__f2py_numpy_version__)hasattrr isinstancerTstrr __version__r;s rtest_numpy_version_attributez6TestNumpyVersionAttribute.test_numpy_version_attributeLsSt{{$<===$++<?@!,$,,w|"L!MNPG [[rrdceZdZejddddgZejjdZ ejjdZ y)TestF77Commentsrrr z f77comments.fctjdtj}tjdtj}|jj ||}|ddk(sJ|ddk(sJyNrr r+rrrarrayint32rtestsubrx1x2rhs r test_gh26148zTestF77Comments.test_gh26148o` XXarxx ( XXarxx (kk!!"b)1v{{1v||rctjddtjdz}|jj }t j ||y)NrrJr r)rrrrtestsub2nptassert_allclose)rexpectedrhs r test_gh26466zTestF77Comments.test_gh26466wsA99Q"**59kk""$ Hc*rN) rr r!rr"r#rr$r%rxrr&rrrlrlksUt||GUL/JKG [[ [[++rrlcpeZdZejddddgZejjdZ y)TestF90Contiuationrrr f90continuation.f90ctjdtj}tjdtj}|jj ||}|ddk(sJ|ddk(sJyrnrqrus r test_gh26148bz TestF90Contiuation.test_gh26148bryrN) rr r!rr"r#rr$r%rr&rrrr~s8t||GUL:OPQG [[rrcpeZdZejddddgZejjdZ y)TestLowerF2PYDirectivesrrr zlower_f2py_fortran.f90c:|jjdy)Nr)r inquire_nextr;s r test_gh28014z$TestLowerF2PYDirectives.test_gh28014s   #rN) rr r!rr"r#rr$r%rr&rrrrs8t||GUL:RSTG [[rrc tjtjddddgdgd}y#t$r}dt |vsJYd}~yd}~wwxYw) Nrrr rz -lfoo.barBlah) module_namezlparen got assign)r build_moduler" RuntimeErrorrWaarerrs r test_gh26623rsY4    \\'5,8M N O M  4"#d)3334s03 AAA)LinuxDarwinz$Unsupported on this platform for now)reasonc tjtjddddgddgd}y#t$r}d t |vsJYd}~yd}~wwxYw) Nrrr zf77fixedform.f95z--f77flags='-ffixed-form -O2'z--f90flags="-ffixed-form -Og"r)rjrunknown_subroutine_)rrr" ImportErrorrWrs r test_gh25784rsc 2    \\'5,8J K L01   2$D 1112s14 AAAcpeZdZejddddgZejjdZ y)TestAssignmentOnlyModulesrrr zassignOnlyModule.f90c|jjjdk(sJ|jjjdk(sJ|jjjdk(sJy)NH)r f_globalsn_maxi_maxj_maxr;s r test_gh27167z&TestAssignmentOnlyModules.test_gh27167s\ %%++r121 %%++r121 %%++r121rN) rr r!rr"r#rr$r%rr&rrrrs:t||GUL:PQRG [[33rr)r]platformrnumpyr numpy.testingtestingr|rF2PyTestrr(r4r>rRrbrdrlrrr$r%rskipifsystemrrr&rrrs@   )dmm ) 8dmm 86 6))*D D$& t}} +dmm+&  dmm 4 4OHOO%-@@Iop 2q 2 3 33r