Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
opt
/
alt
/
python35
/
lib64
/
python3.5
/
site-packages
/
numpy
/
tests
/
__pycache__
/
File Content:
test_scripts.cpython-35.opt-1.pyc
X��f" � @ s d Z d d l m Z m Z m Z d d l Z d d l m Z m Z m Z m Z d d l Z d d l m Z m Z d d l Z d d l m Z m Z d d l m Z d d l m Z d d l m Z e e e e j � d d � � Z d d d � Z e e � d d � � Z d S)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�asbytes)�assert_equal)�skipif)�assert_z..zsetup.pyTc C s� t | t � r | g n t | � } t j d k rF d d � | D� } t | d t d t �} | j � \ } } | j � d k r� | j � | r� | j d k r� t d j d d d d d d d d g � j | | | � � � | j | | f S)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 s1 g | ]'