K i?ddlmZddlZddlZddlmZmZddlm Z dZ ejje j de d Zd Zejj Gd d e j"Zy) )PathN)assert_array_equal assert_equal)utilcttjj} |d}|dz dz dz dz }|r|j r|S|ddz dz dz dz S#t$rd}Y2wxYw)Ndocsourcef2pycode)r__file__resolveparents IndexErroris_dir)rnprootdocdirs `/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/numpy/f2py/tests/test_docs.py get_docdirr s8n$$&..G=%(*V3f< &--/ 1:  (6 1F :: sA!! A/.A/z*Could not find f2py documentation sources(z does not exist))reasonc0tj|S)N)rjoinpath)argss r_pathr s :< $ ''cLeZdZedededgZdZdZdZy)TestDocAdvancedz asterisk1.f90z asterisk2.f90zftype.fcR|jj}t|dy)N 123456789A12)modulefoo1rselffoos rtest_asterisk1zTestDocAdvanced.test_asterisk1)skkSUO,rc|jj}t|ddt|ddt|ddy)Ns12 r!s123456789A123456789B)r"foo2rr$s rtest_asterisk2zTestDocAdvanced.test_asterisk2-s<kkSVU#SWo.SW56rcJ|j}|jt|jjdd|j_gd|j_t|jjdt |jj tjgdtjd|jj d<t |jj tjgdtjy)Nrr)rr)r)dtype-r)rr0r) r"r&rdataaxrnparrayfloat32)r%ftypes r test_ftypezTestDocAdvanced.test_ftype3s  UZZ\\1%   UZZ\\1%5::<<88IRZZ@ B Q5::<<88JbjjA CrN)__name__ __module__ __qualname__rsourcesr'r-r8rrrr#s2_%u_'=Y!G-7 Crr)pathlibrpytestnumpyr4 numpy.testingrrrrmarkskipifr pytestmarkrslowF2PyTestrr=rrrHs : ;[[    ~% '  (CdmmCCr