0x1949 Team - FAZEMRX - MANAGER
Edit File: script_helper.cpython-38.pyc
U ˧f) � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlm Z d dl mZmZ da dd� ZG dd� de �dd��Zd d � Zdd� Zd d� Zdd� Zejejd�dd�Zdd� Zd!dd�Zd"dd�Zd#dd�Zd$dd �ZdS )%� N)�source_from_cache)�make_legacy_pyc�strip_python_stderrc C sV t dkrRdtjkrda dS zt�tjdddg� W n tjk rL da Y nX da t S )a Returns True if our sys.executable interpreter requires environment variables in order to be able to run at all. This is designed to be used with @unittest.skipIf() to annotate tests that need to use an assert_python*() function to launch an isolated mode (-I) or no environment mode (-E) sub-interpreter process. A normal build & test does not run into this situation but it can happen when trying to run the standard library test suite from an interpreter that doesn't have an obvious home with Python's current home finding logic. Setting PYTHONHOME is one way to get most of the testsuite to run in that situation. PYTHONPATH or PYTHONUSERSITE are other common environment variables that might impact whether or not the interpreter can start. NZ PYTHONHOMET�-Ez-czimport sys; sys.exit(0)F)�$__cached_interp_requires_environment�os�environ� subprocessZ check_call�sys� executableZCalledProcessError� r r �0/usr/lib/python3.8/test/support/script_helper.py� interpreter_requires_environment s � r c @ s e Zd ZdZdd� ZdS )�_PythonRunResultz2Helper for reporting Python subprocess run resultsc C s� d}| j | j }}t|�|kr0d|| d� }t|�|krNd|| d� }|�dd��� }|�dd��� }td| j|||f ��dS )z4Provide helpful details about failed subcommand runsi@ s (... truncated stdout ...)Ns (... truncated stderr ...)�ascii�replacezRProcess return code is %d command line: %r stdout: --- %s --- stderr: --- %s ---)�out�err�len�decode�rstrip�AssertionError�rc)�self�cmd_line�maxlenr r r r r �fail; s ��z_PythonRunResult.failN)�__name__� __module__�__qualname__�__doc__r r r r r r 8 s r )r r r c O s& t � }|�dd �}d|kr&|�d�}n| o0| }tjddg}|rN|�d� n|s`|s`|�d� |�dd �r�i }tjdkr�tjd |d <