HEX
Server: Apache
System: Linux bd12.noc223.com 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: handcraf (1693)
PHP: 8.1.28
Disabled: NONE
Upload Files
File: //proc/self/root/opt/alt/python312/lib64/python3.12/test/__pycache__/test_osx_env.cpython-312.pyc
�

~h�e:���dZddlmZddlZddlZddlZddlZejejdk(xrejd�d�Gd�dej��Zed	k(rej�yy)
z8
Test suite for OS X interpreter environment variables.
�)�EnvironmentVarGuardN�darwin�WITH_NEXT_FRAMEWORKzunnecessary on this platformc�6�eZdZejdzfd�Zd�Zy)�OSXEnvironmentVariableTestCase�dummyc��t�5}ttj�dd|�d|�d|�d�g}|j	|�tj|�}|j|dd|�d|�d|���|j||�tj|�}|j|d	d|�d|�d|���ddd�y#1swYyxYw)
Nz-czimport sys; sys.exit(2 if "z" � z else 3)�z	expected z not �)	r�str�sys�
executable�unset�
subprocess�call�assertEqual�set)�self�ev�cond�sv�val�evg�subpc�rcs        �8/opt/alt/python312/lib64/python3.12/test/test_osx_env.py�
_check_sysz)OSXEnvironmentVariableTestCase._check_syss���
 �
"�	J�c�����(�$�BE�t�R�P�R�E�
�I�I�b�M�����'�B����R��r�4��$L�M��G�G�B�������'�B����R��2�t�R�$H�I�	J�	J�	J�s�B,C�C	c�*�|jddd�y)N�PYTHONEXECUTABLEz==zsys.executable)r)rs r�)test_pythonexecutable_sets_sys_executablezHOSXEnvironmentVariableTestCase.test_pythonexecutable_sets_sys_executables�����*�D�2B�C�N)�__name__�
__module__�__qualname__rrrr!�r"rrrs��.1�^�^�g�-E�
J�Dr"r�__main__)�__doc__�test.support.os_helperrrr�	sysconfig�unittest�
skipUnless�platform�get_config_var�TestCaserr#�mainr&r"r�<module>r1s����7��
�������S�\�\�X�-�E�-�Y�-�-�.C�D�3�5�D�X�%6�%6�D�5�D�&�z���H�M�M�O�r"