K iddlZddlZddlmZddlmZej jGddejZ ej jGddejZ ej jGd d ejZ ej jGd d ejZ ej jGd dejZ y)N)IS_PYPY)utilcFeZdZejdddddgZdgZdZy) TestModuleFilterPublicEntitiestestssrcmodulesgh26920z$two_mods_with_one_public_routine.f90 mod1_func1cyNselfs c/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/numpy/f2py/tests/test_modules.py test_gh26920z+TestModuleFilterPublicEntities.test_gh26920 N__name__ __module__ __qualname__rgetpathsourcesonlyrrrrrr s4  UIy 2 G  D rrcFeZdZejdddddgZdgZdZy) TestModuleWithoutPublicEntitiesrr r r z$two_mods_with_no_public_entities.f90r cyrrrs rrz,TestModuleWithoutPublicEntities.test_gh26920$rrNrrrrrrs4  UIy 2 G  D rrc~eZdZejddddgZejje ddZ y) TestModuleDocStringrr r zmodule_data_docstring.f90z,PyPy cannot modify tp_doc after PyType_Ready)reasonct|jjjtjdk(sJy)Nz i : 'i'-scalar x : 'i'-array(4) a : 'f'-array(2,3) b : 'f'-array(-1,-1), not allocated foo() Wrapper for ``foo``. )modulemod__doc__textwrapdedentrs rtest_module_docstringz)TestModuleDocString.test_module_docstring-s2{{&&(// 1+    rN) rrrrrrpytestmarkxfailrr)rrrr!r!)sDt||GUI7RSTG [[w'UV  W  rr!cneZdZdZej dddddej dddddgZdZy ) TestModuleAndSubroutineexamplerr r gh25337zdata.f90z use_data.f90c|jjjddt|jvsJy)Ndata)r$r3 set_shiftdirrs r test_gh25337z$TestModuleAndSubroutine.test_gh25337Bs1 ""1%T[[))))rN)rrr module_namerrrr6rrrr.r.:s?K WeY :F WeY >JG *rr.cBeZdZdZej ddddgZdZy)TestUsedModulefmathrr r zuse_modules.f90c t|jDcgc] }d|vs| }}d|vsJ|jjjdddk(sJd|vsJ|jjj dddk(sJycc}w)N__useopsr2mathops )r5r$r=sum_and_doubler@add)rx compiled_modss r test_gh25867zTestUsedModule.test_gh25867Ns$' $4FqA F F=((({{!!00A6"<<<M))){{""&&q!,222 Gs B B N)rrrr7rrrrFrrrr9r9Gs(K WeY0ABG3rr9)r'r* numpy.testingrrr+slowF2PyTestrrr!r.r9rrrrKs !  T]]      dmm      $--     *dmm * * 3T]] 3 3r