Current File : //usr/local/apps/python3/lib/python3.11/test/__pycache__/test_zipimport_support.cpython-311.pyc |
�
�Ke�) � � � d dl Zd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl
Z
d dlZd dl mZ d dl
mZmZmZmZmZ ej j Zd dlmZmZmZmZ d� Z G d� dej � � Zd� Zed k r ej � � dS dS )
� N)� os_helper)�spawn_python�kill_python�assert_python_ok�make_script�make_zip_script)�test_doctest�sample_doctest�sample_doctest_no_doctests�sample_doctest_no_docstringsc �� � t j t d�� � }t j t �� � } | j �d| j ��}n# t $ r
|j }Y nw xY w|� | ||� � D ]}|� |� � �|j
|j }}|r$t j
� d||fz � � �t rt d|j |fz � � ||fS )NF)�verbose�recurse)r �.z%d of %d doctests failedz,doctest (%s) ... %d tests with zero failures)�doctest�
DocTestFinderr �
DocTestRunner�
__module__�__qualname__�AttributeError�__name__�find�run�failures�tries�test�support�
TestFailed�print)�obj�module�finder�runner�name�example�f�ts �E/usr/local/apps/python3/lib/python3.11/test/test_zipimport_support.py�_run_object_doctestr) $ s � �
�
"�7�E�
B�
B�
B�F�
�
"�7�
3�
3�
3�F���.�.�.�#�*:�*:�;����� � � �����������;�;�s�D�&�1�1� � ���
�
�7������?�F�L�q�A�� K��l�%�%�&@�A�q�6�&I�J�J�J�� V�
�=���RS�@T�T�U�U�U��a�4�Ks �A � A�Ac �2 � e Zd Zd� Zd� Zd� Zd� Zd� Zd� ZdS )�ZipSupportTestsc �: � t j � � t j � � � t
j d d � | _ t
j d d � | _ t
j d d � | _ t
j � � � d S �N)
� linecache�
clearcache� zipimport�_zip_directory_cache�clear�sys�path� meta_path�
path_hooks�path_importer_cache��selfs r( �setUpzZipSupportTests.setUpA sv � �������&�,�,�.�.�.��H�Q�Q�Q�K�� ���q�q�q�)����.����+�����%�%�'�'�'�'�'� c �� � | j t j d d �<