XylotrechusZ
�
� ho � �� � d Z ddlmZ ddlmZ ddlmZ ddlmZ h d�Z eed� � Z eed� � Z ed � � Z
ed
� � Z ed� � Z ed� � Z
ed
� � Z ed� � Z eed� � Z eed� � Z eed� � Z eed� � Z ed� � Z eed� � Z ed� � Z eed� � Zdeddfd�ZdS )a� Deprecation messages and bits of code used elsewhere in the codebase that
is planned to be removed in the next pytest release.
Keeping it in a central location makes it easy to track what is deprecated and should
be removed when the time comes.
All constants defined in this module should be either instances of
:class:`PytestWarning`, or :class:`UnformattedWarning`
in case of warnings which need to format their messages.
� )�warn)�PytestDeprecationWarning)�PytestRemovedIn8Warning)�UnformattedWarning> �pytest_catchlog�pytest_capturelog�pytest_faulthandlerz�Support for nose tests is deprecated and will be removed in a future release.
{nodeid} is using nose method: `{method}` ({stage})
See docs: https://docs.pytest.org/en/stable/deprecations.html#support-for-tests-written-for-nosea$ Support for nose tests is deprecated and will be removed in a future release.
{nodeid} is using nose-specific method: `{method}(self)`
To remove this warning, rename it to `{method}_method(self)`
See docs: https://docs.pytest.org/en/stable/deprecations.html#[email protected]_fixture is deprecated.
Use @pytest.fixture instead; they are the same.z�The pytest_cmdline_preparse hook is deprecated and will be removed in a future release.
Please use pytest_load_initial_conftests hook instead.z�The gethookproxy() and isinitpath() methods of FSCollector and Package are deprecated; use self.session.gethookproxy() and self.session.isinitpath() instead. z@The --strict option is deprecated, use --strict-markers instead.z,A private pytest class or function was used.zGpytest now uses argparse. "%default" should be changed to "%(default)s"z�`type` argument to addoption() is the string {typ!r}. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: {names})z�`type` argument to addoption() is the string {typ!r}, but when supplied should be a type (for example `str` or `int`). (options: {names})z�The ({pylib_path_arg}: py.path.local) argument is deprecated, please use ({pathlib_path_arg}: pathlib.Path)
see https://docs.pytest.org/en/latest/deprecations.html#py-path-local-arguments-for-hooks-replaced-with-pathlib-pathz�The (fspath: py.path.local) argument to {node_type_name} is deprecated. Please use the (path: pathlib.Path) argument instead.
See https://docs.pytest.org/en/latest/deprecations.html#fspath-argument-for-node-constructors-replaced-with-pathlib-pathz�Passing None has been deprecated.
See https://docs.pytest.org/en/latest/how-to/capture-warnings.html#additional-use-cases-of-warnings-in-tests for alternatives in common use cases.zOpytest.{func}(msg=...) is now deprecated, use pytest.{func}(reason=...) insteadz�The pytest.Instance collector type is deprecated and is no longer used. See https://docs.pytest.org/en/latest/deprecations.html#the-pytest-instance-collectora The hook{type} {fullname} uses old-style configuration options (marks or attributes).
Please use the pytest.hook{type}({hook_opts}) decorator instead
to configure the hooks.
See https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markers�ispytest�returnNc �: � | st t d�� � d S d S )N� )�
stacklevel)r �PRIVATE)r
s �c/builddir/build/BUILD/cloudlinux-venv-1.0.8/venv/lib/python3.11/site-packages/_pytest/deprecated.py�check_ispytestr � s- � �� $��W��#�#�#�#�#�#�$� $� )�__doc__�warningsr �_pytest.warning_typesr r r �DEPRECATED_EXTERNAL_PLUGINS�NOSE_SUPPORT�NOSE_SUPPORT_METHOD�
YIELD_FIXTURE�WARNING_CMDLINE_PREPARSE_HOOK�#FSCOLLECTOR_GETHOOKPROXY_ISINITPATH�
STRICT_OPTIONr �ARGUMENT_PERCENT_DEFAULT�ARGUMENT_TYPE_STR_CHOICE�ARGUMENT_TYPE_STR�HOOK_LEGACY_PATH_ARG�NODE_CTOR_FSPATH_ARG�WARNS_NONE_ARG�KEYWORD_MSG_ARG�INSTANCE_COLLECTOR�HOOK_LEGACY_MARKING�boolr � r r �<module>r( sA �� � � � � � � � � :� :� :� :� :� :� 9� 9� 9� 9� 9� 9� 4� 4� 4� 4� 4� 4�� � � � "�!��g�� �� )�(��g�� � � )�(�6�� �
�
!8� 7�=�!� !� �
'>�&=�N�'� '� #�
(�'�F�� �
�
#�
"�#Q�
R�
R��2�2�M�� � � .�-���� � � '�&���� � � *�)��D�� � � *�)��H�� � � )�(�-�� �� %�$��U�� ��
-�,�\�� � � )�(��2�� � �8$�T� $�d� $� $� $� $� $� $r