Current File : //usr/lib/python3/dist-packages/jsonschema/tests/__pycache__/test_deprecations.cpython-312.pyc |
�
`��d= � �2 � d dl mZ d dlmZ G d� de� Zy)� )�TestCase)�
validatorsc �6 � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z y) �TestDeprecationsc �
� | j t � 5 }ddlm} ddd� | j j
t � | j t |j � j d� � y# 1 sw Y �]xY w)zY
As of v4.0.0, __version__ is deprecated in favor of importlib.metadata.
r )�__version__Nz.Accessing jsonschema.__version__ is deprecated)�assertWarns�DeprecationWarning�
jsonschemar �assertEqual�filename�__file__�
assertTrue�str�warning�
startswith)�self�wr s �D/usr/lib/python3/dist-packages/jsonschema/tests/test_deprecations.py�test_versionzTestDeprecations.test_version sh � �
�
�
�0�
1� /�Q�.� /�
������X�.������ � �N�%�%�@�
�
� /� /�� �A9�9Bc �
� | j t � 5 }ddlm} ddd� | j j
t � | j t |j � j d� � y# 1 sw Y �]xY w)z�
As of v4.0.0, importing ErrorTree from jsonschema.validators is
deprecated in favor of doing so from jsonschema.exceptions.
r )� ErrorTreeNz<Importing ErrorTree from jsonschema.validators is deprecated)r r
�jsonschema.validatorsr r r
r r r r r )r r r s r �test_validators_ErrorTreez*TestDeprecations.test_validators_ErrorTree sh � � �
�
�0�
1� 8�Q�7� 8�
������X�.������ � �N�%�%�N�
�
� 8� 8�r c �^ � | j t � 5 }t j }ddd� | j t j � | j j
t � | j t |j � j d� � y# 1 sw Y �}xY w)za
As of v4.0.0, accessing jsonschema.validators.validators is
deprecated.
Nz8Accessing jsonschema.validators.validators is deprecated)r r
r r �_VALIDATORSr
r r r r r �r r �values r �test_validators_validatorsz+TestDeprecations.test_validators_validators&