HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/Python311/Scripts/__pycache__/pywin32_testall.cpython-311.pyc
�

0h��8�dZddlZddlZddlZddlZej�ej�ej�e������Zej	��gej
��zZgZd�Z
d�Zd�Zedkre��dSdS)zA test runner for pywin32�Nc��tj�|��\}}tjd|g|z}td|z��tj���tj	|d|���}td|�d|j
����tj���|j
rt�|��dSdS)Nz-uz--- Running '%s' ---F)�check�cwdz*** Test script 'z' exited with )
�os�path�split�sys�
executable�print�stdout�flush�
subprocess�run�
returncode�failures�append)�script�cmdline_extras�dirname�
scriptname�cmd�results      �?C:\Python311\Lib\site-packages\../../Scripts/pywin32_testall.py�run_testrs����'�-�-��/�/��G�Z��>�4��
,�~�
=�C�	�
 �6�
)�*�*�*��J������
�^�C�u�'�
:�
:�
:�F�	�
G�f�
G�
G�F�4E�
G�
G�H�H�H��J������
�� ���������� � �c��|D]4}tj�|��rt||��dS�5t	d|z���)Nz+Failed to locate a test script in one of %s)rr�isfiler�RuntimeError)�possible_locations�extras�maybes   r�find_and_runr" s`��#�
�
��
�7�>�>�%� � �	��U�F�#�#�#��E�E�	��9�<N�N�
�
�	
rc��	�ddl}tgtz}|�d���}|�dddd���|�d	dd
���|�dddd
���|���\}}g}|jr|�d	��|�|��ddg}|D] �	�	fd�|D��}t||���!d�tj�td��gtzD��}|dgz}t||��|j
s8d�|D��}t||��d�|D��}t||��tr=td��tD]}td|���t!jd��td��dS)Nrz8A script to trigger tests in all subprojects of PyWin32.)�descriptionz-no-user-interactionF�
store_truezC(This is now the default - use `-user-interaction` to include them))�default�action�helpz-user-interactionz,Include tests which require user interaction)r'r(z-skip-adodbapiz@Skip the adodbapi tests; useful for CI where there's no providerzwin32/test/testall.pyzPythonwin/pywin/test/all.pyc�P��g|]"}tj�|�����#S��rr�join)�.0�	directoryrs  �r�
<listcomp>zmain.<locals>.<listcomp>Ts)���T�T�T�i�"�'�,�,�y�&�1�1�T�T�Trc�R�g|]$}tj�|ddd����%S)�win32com�testz
testall.pyr+�r-r.s  rr/zmain.<locals>.<listcomp>Xs<������	����Y�
�F�L�A�A���r�com�1c�R�g|]$}tj�|ddd����%S)�adodbapir2zadodbapitest.pyr+r3s  rr/zmain.<locals>.<listcomp>as=��
�
�
��
�G�L�L��J��8I�J�J�
�
�
rc�R�g|]$}tj�|ddd����%S)r7r2ztest_adodbapi_dbapi20.pyr+r3s  rr/zmain.<locals>.<listcomp>is=��
�
�
��
�G�L�L��J��8R�S�S�
�
�
rzThe following scripts failed�>�zAll tests passed \o/)�argparse�project_root�
site_packages�ArgumentParser�add_argument�parse_known_args�user_interactionr�extendr"rrr,�
skip_adodbapirrr	�exit)
r;�code_directories�parser�args�remainsr �scripts�maybes�failurers
         @r�mainrL+sh����O�O�O�$�~�
�5��
�
$�
$�N�%���F�������
R�	���������
;�����������
O�	�����+�+�-�-�M�D�'��F���+��
�
�)�*�*�*�
�M�M�'�����%��G��%�%��T�T�T�T�CS�T�T�T���V�V�$�$�$�$����'�,�,�|�U�;�;�<�}�L����F���u�_�F���� � � ���
&�
�
�-�
�
�
��	�V�W�%�%�%�
�
�-�
�
�
��	�V�W�%�%�%���
�,�-�-�-��	 �	 �G��#�w�����������	�
!�"�"�"�"�"r�__main__)�__doc__r�siterr	rr�__file__r<�getusersitepackages�getsitepackagesr=rrr"rL�__name__r*rr�<module>rTs�����	�	�	�	���������
�
�
�
��w���r�w���r�w���x�/H�/H�I�I�J�J��)��)�+�+�,�/C�t�/C�/E�/E�E�
�
��
 �
 �
 �
�
�
�I#�I#�I#�X�z����D�F�F�F�F�F��r