zmc
2023-08-08 e792e9a60d958b93aef96050644f369feb25d61b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
U
P±dœã@sÀdZddlZddlZddlZddlmZmZmZddl    Z    ddl
Z ddl m Z mZeeee jƒddƒƒZdd„Zejjed    d
ejjd d
ej d eƒ¡d d„ƒƒƒZejjedd
dd„ƒZdS)z\ Test scripts
 
Test that we can run executable scripts that have been installed with numpy.
éN)ÚjoinÚisfileÚdirname)Ú assert_equalÚIS_WASMz..zsetup.pycCsztjdkrBttjƒ}| d¡r.tj |d¡gStj |dd¡gSn4tj}t    |j
ƒ}t    |j ƒ}dd|d|d|gSdS)NÚwin32ZScriptsZf2pyÚ.) ÚsysÚplatformrÚ
executableÚendswithÚosÚpathrÚ version_infoÚstrÚmajorÚminor)Úexe_dirÚversionrr©rúOd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\numpy/tests/test_scripts.pyÚfind_f2py_commandss
 
 
 
 
rz Cannot test f2py command inplace)ÚreasonzTest is unreliableÚf2py_cmdcCs(t |dg¡}t| ¡tj d¡ƒdS)Nú-vÚascii)Ú
subprocessÚ check_outputrÚstripÚnpÚ __version__Úencode)rÚstdoutrrrÚ    test_f2py#sr#zCannot start subprocesscCs,t tjddg¡}t| ¡tj d¡ƒdS)Nz -mnumpy.f2pyrr)    rrr    r rrrr r!)r"rrrÚ test_pep338,sr$)Ú__doc__r    r ZpytestÚos.pathrZpathjoinrrrÚnumpyrZ numpy.testingrrÚ__file__Z
is_inplacerÚmarkZskipifZxfailZ parametrizer#r$rrrrÚ<module>s