HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/numpy/tests/__pycache__/test_scripts.cpython-310.pyc
o

���gm�@s�dZddlZddlZddlZddlmZmZmZddl	Z	ddl
Zddlm
Z
mZeeeej�dd��Zdd�Zejjed	d
�ejjdd
�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.pycCsttjdkr ttj�}|�d�rtj�|d�gStj�|dd�gStj}t	|j
�}t	|j�}dd|d|d|gS)N�win32�Scripts�f2py�.)�sys�platformr�
executable�endswith�os�pathr�version_info�str�major�minor)�exe_dir�versionrr�r�C/usr/local/lib/python3.10/dist-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)	rrrr
rr r!r"r#)r$rrr�test_pep338,sr&)�__doc__rr�pytest�os.pathr�pathjoinrrr�numpyr!�
numpy.testingrr�__file__�
is_inplacer�mark�skipif�xfail�parametrizer%r&rrrr�<module>s