OwlCyberSecurity - MANAGER
Edit File: test_scripts.cpython-38.pyc
U �i]e � @ s� d Z ddlmZmZmZ ddlZddlZddlZddlm Z mZmZ ddl Z ddlZddlmZ ddlmZmZ ee eej�dd��Zd d � Zejjedd�ejjd d�ej�de� �dd� ���Zdd� ZdS )z\ Test scripts Test that we can run executable scripts that have been installed with numpy. � )�division�print_function�absolute_importN)�join�isfile�dirname)� basestring)�assert_�assert_equalz..zsetup.pyc C sz t jdkrBtt j�} | �d�r.tj�| d�gS tj�| dd�gS n4t j}t |j �}t |j�}dd| d| d | gS d S )NZwin32ZScriptsZf2py�.)�sys�platformr � executable�endswith�os�pathr �version_info�str�major�minor)�exe_dir�versionr r � r �:/usr/lib/python3/dist-packages/numpy/tests/test_scripts.py�find_f2py_commands s r z Cannot test f2py command inplace)�reasonzTest is unreliable�f2py_cmdc C s t �| dg�}t|�� d� d S )N�-v� 2)� subprocess�check_outputr �strip)r �stdoutr r r � test_f2py&