Viewing File: /opt/hc_python/lib/python3.12/site-packages/greenlet/tests/__pycache__/test_version.cpython-312.pyc

�

i0i;��V�ddlmZddlmZddlZddlZddlmZddlZGd�de�Z	y)�)�absolute_import)�print_functionN)�TestCasec��eZdZd�Zy)�VersionTestsc�~�d�}	|d�}tj�d�d�}tj|�5}|j�j�}ddd�|jtj�y#t$r'}|jdt|�z�Yd}~��d}~wwxYw#1swY�]xYw)Nc� �tjj|�r|Sg}tjjtjj	t
��}t
d�D]�}dg|z}|g|z|gz}tjj|�}tjj|�}|j|�tjj|�s�|cStd|zdzt|�z��)N�
z..zCould not find file z
; checked )�os�path�exists�abspath�dirname�__file__�range�join�append�AssertionError�str)�name�tried�here�i�upr�fnames       �L/opt/hc_python/lib64/python3.12/site-packages/greenlet/tests/test_version.py�find_dominating_filez7VersionTests.test_version.<locals>.find_dominating_files����w�w�~�~�d�#����E��7�7�?�?�2�7�7�?�?�8�#<�=�D��2�Y���V�a�Z���v��{�d�V�+�������d�+��������.�����U�#��7�7�>�>�%�(� �L��!�!7�$�!>��!M�PS�TY�PZ�!Z�[�[�zsetup.pyz.Unable to find setup.py; must be out of tree. � z
 --version)r�skipTestr�sys�
executabler�popen�read�strip�assertEqual�greenlet�__version__)�selfr�setup_py�e�invoke_setup�f�sversions       r�test_versionzVersionTests.test_versions���	\� 	U�+�J�7�H�
-0�N�N�H�E��
�X�X�l�
#�q��v�v�x�~�~�'�H�$�	
����8�#7�#7�8���	U��M�M�J�S�QR�V�S�T�T��	U��
$�
#�s"�B�B3�	B0�	B+�+B0�3B<N)�__name__�
__module__�__qualname__r/�rrrr
s��9rr)
�
__future__rrr!r�unittestr�NonLeakingTestCaser'rr3rr�<module>r7s$��&�%�
�	�3��9�%�9r
Back to Directory File Manager