| Server IP : 93.115.150.27 / Your IP : 216.73.216.221 Web Server : LiteSpeed System : Linux host2.azar.host 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64 User : dorfakkh ( 1797) PHP Version : 8.1.34 Disable Function : show_source, system, passthru, exec, popen, proc_open, mail MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python37/lib64/python3.7/site-packages/numpy/tests/__pycache__/ |
Upload File : |
B
��Fd � @ s� d Z ddlmZmZmZ ddlZddlmZm Z m
Z
mZ ddlZddl
mZmZ ddlZddlmZ ddlmZ ddlmZ dd lmZ e ee
ej�d
d��Zdd
d�Zee�dd� �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�basename)�Popen�PIPE)�
basestring)�assert_equal)�skipif)�assert_z..zsetup.pyTc C s� t | t�r| gnt| �} tjdkr0dd� | D �} t| ttd�}|�� \}}|�� dkr^|� � |r�|j
dkr�td�dd d
ddd
d
dg��
| ||���|j
||fS )ap Run command sequence `cmd` returning exit code, stdout, stderr
Parameters
----------
cmd : str or sequence
string with command name or sequence of strings defining command
check_code : {True, False}, optional
If True, raise error for non-zero return code
Returns
-------
returncode : int
return code from execution of `cmd`
stdout : bytes (python 3) or str (python 2)
stdout from `cmd`
stderr : bytes (python 3) or str (python 2)
stderr from `cmd`
Raises
------
RuntimeError
If `check_code` is True, and return code !=0
�ntc S s"