HOME


sh-3ll 1.0
DIR:/usr/local/lib64/python3.6/site-packages/numpy/tests/__pycache__/
Upload File :
Current File : //usr/local/lib64/python3.6/site-packages/numpy/tests/__pycache__/test_scripts.cpython-36.pyc
3

���h��@s�dZddlZddlZddlZddlmZmZmZddl	Z	ddl
Zddlm
Z
eeeej�dd��Zdd�Zejjed	d
�ejjdd
�ejjde��d
d����Zdd�ZdS)z\ Test scripts

Test that we can run executable scripts that have been installed with numpy.
�N)�join�isfile�dirname)�assert_equalz..zsetup.pycCsztjdkrBttj�}|jd�r.tjj|d�gStjj|dd�gSn4tj}t	|j
�}t	|j�}dd|d|d|gSdS)N�win32�ScriptsZf2py�.)�sys�platformr�
executable�endswith�os�pathr�version_info�str�major�minor)�exe_dir�versionrr�r�9/tmp/pip-build-5_djhm0z/numpy/numpy/tests/test_scripts.py�find_f2py_commandss




rz Cannot test f2py command inplace)�reasonzTest is unreliable�f2py_cmdcCs tj|dg�}t|j�d�dS)Nz-v�2)�
subprocess�check_outputr�strip)r�stdoutrrr�	test_f2py#srcCs$tjtjddg�}t|j�d�dS)Nz-mnumpy.f2pyz-vr)rrr	rrr)rrrr�test_pep338,sr )�__doc__r	r
Zpytest�os.pathrZpathjoinrrrZnumpy�npZ
numpy.testingr�__file__Z
is_inplacer�markZskipifZxfailZparametrizerr rrrr�<module>s