�
���h� � � � d Z ddlmZ ddlZddlZddlmZ ej � ej � e � � � � Z
ddd�Zd
gZdS )z6
Entrypoint for testing from the top-level namespace.
� )�annotationsN)�import_optional_dependencyF�
extra_args�list[str] | None�run_doctests�bool�return�Nonec � � t d� � }t d� � dg}| rt | t � � s| g} | }|r+dddt j � t d� � � �g}|t gz
}d� |� � }t d |� �� � t j |�
|� � � � d
S )a.
Run the pandas test suite using pytest.
By default, runs with the marks -m "not slow and not network and not db"
Parameters
----------
extra_args : list[str], default None
Extra marks to run the tests.
run_doctests : bool, default False
Whether to only run the Python and Cython doctests. If you would like to run
both doctests/regular tests, just append "--doctest-modules"/"--doctest-cython"
to extra_args.
Examples
--------
>>> pd.test() # doctest: +SKIP
running: pytest...
�pytest�
hypothesisz&-m not slow and not network and not dbz--doctest-modulesz--doctest-cythonz --ignore=�tests� zrunning: pytest N)r �
isinstance�list�os�path�join�PKG�print�sys�exit�main)r r r �cmd�joineds �J/opt/cloudlinux/venv/lib64/python3.11/site-packages/pandas/util/_tester.py�testr s� � �( (��
1�
1�F��|�,�,�,�3�
4�C�� ��*�d�+�+� &�$��J����
���4�����S�'�2�2�4�4�
��
�C�5�L�C�
�X�X�c�]�]�F� �
%�V�
%�
%�&�&�&��H�V�[�[��
�
������ r )NF)r r r r r r
)
�__doc__�
__future__r r r �pandas.compat._optionalr r �dirname�__file__r r �__all__� r r �<module>r& |