a ;jg@szddlZddlZddlmZddlmZejjGdddejZ ejjGdddejZ ejjGd d d ejZ dS) N)util)IS_PYPYc@s6eZdZeddddgZejje ddddZ d S) TestModuleDocStringtestssrcmoduleszmodule_data_docstring.f90z,PyPy cannot modify tp_doc after PyType_Ready)reasoncCs|jjjtdksJdS)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__textwrapdedentselfrG/usr/local/lib/python3.9/site-packages/numpy/f2py/tests/test_modules.pytest_module_docstring s z)TestModuleDocString.test_module_docstringN) __name__ __module__ __qualname__rgetpathsourcespytestmarkZxfailrrrrrrrsrc@s<eZdZdZedddddedddddgZdd Zd S) TestModuleAndSubroutineexamplerrrZgh25337zdata.f90z use_data.f90cCs$|jjddt|jvs JdS)Ndata)r rZ set_shiftdirrrrr test_gh25337!sz$TestModuleAndSubroutine.test_gh25337N)rrr module_namerrrr rrrrrs rc@s*eZdZdZeddddgZddZdS) TestUsedModuleZfmathrrrzuse_modules.f90cCs`ddt|jD}d|vs J|jjdddks8Jd|vsDJ|jjdddks\JdS) NcSsg|]}d|vr|qS)__r).0xrrr .z/TestUsedModule.test_gh25867..useopsrmathops )rr r(Zsum_and_doubler+add)rZ compiled_modsrrr test_gh25867-s   zTestUsedModule.test_gh25867N)rrrr!rrrr.rrrrr"&sr") rr rZ numpy.testingrrZslowZF2PyTestrrr"rrrrs