| Server IP : 46.62.235.243 / Your IP : 216.73.216.163 Web Server : Apache/2.4.58 (Ubuntu) System : Linux Linkabili3Dicembre 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/jsonschema/tests/__pycache__/ |
Upload File : |
�
`��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&