§
    ‚ŠtjŠ=  ã                   ó’   — d dl mZ d dlmZ d dlmZmZ d dlZd dl	Z	d dl
Z
d dlZd dlZd dlZd dlmZmZmZmZ  G d„ de¦  «        ZdS )é    )Úcontextmanager)ÚBytesIO)ÚTestCaseÚmockN)ÚFormatCheckerÚ
exceptionsÚ	protocolsÚ
validatorsc                   ó˜   — e Zd Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Z	d„ Z
d	„ Zd
„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ ZdS )ÚTestDeprecationsc                 ó"  — d}|                       t          |¦  «        5 }ddlm} ddd¦  «         n# 1 swxY w Y   |                      |t
          j                             d¦  «        ¦  «         |                      |j        t          ¦  «         dS )zY
        As of v4.0.0, __version__ is deprecated in favor of importlib.metadata.
        z.Accessing jsonschema.__version__ is deprecatedr   )Ú__version__NÚ
jsonschema)
ÚassertWarnsRegexÚDeprecationWarningr   r   ÚassertEqualÚ	importlibÚmetadataÚversionÚfilenameÚ__file__)ÚselfÚmessageÚwr   s       ú`/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/jsonschema/tests/test_deprecations.pyÚtest_versionzTestDeprecations.test_version   sÌ   € ð
 CˆØ×"Ò"Õ#5°wÑ?Ô?ð 	/À1Ø.Ð.Ð.Ð.Ð.Ð.ð	/ð 	/ð 	/ñ 	/ô 	/ð 	/ð 	/ð 	/ð 	/ð 	/ð 	/øøøð 	/ð 	/ð 	/ð 	/ð 	×Ò˜¥iÔ&8×&@Ò&@ÀÑ&NÔ&NÑOÔOÐOØ×Ò˜œ¥XÑ.Ô.Ð.Ð.Ð.ó   ž1±5¸5c                 óü   — d}|                       t          |¦  «        5 }ddlm} ddd¦  «         n# 1 swxY w Y   |                      |t
          j        ¦  «         |                      |j        t          ¦  «         dS )z•
        As of v4.0.0, importing ErrorTree from jsonschema.validators is
        deprecated in favor of doing so from jsonschema.exceptions.
        z2Importing ErrorTree from jsonschema.validators is r   ©Ú	ErrorTreeN)r   r   Újsonschema.validatorsr    r   r   r   r   ©r   r   r   r    s       r   Útest_validators_ErrorTreez*TestDeprecations.test_validators_ErrorTree   s¾   € ð GˆØ×"Ò"Õ#5°wÑ?Ô?ð 	8À1Ø7Ð7Ð7Ð7Ð7Ð7ð	8ð 	8ð 	8ñ 	8ô 	8ð 	8ð 	8ð 	8ð 	8ð 	8ð 	8øøøð 	8ð 	8ð 	8ð 	8ð 	×Ò˜¥JÔ$8Ñ9Ô9Ð9Ø×Ò˜œ¥XÑ.Ô.Ð.Ð.Ð.r   c                 óü   — d}|                       t          |¦  «        5 }ddlm} ddd¦  «         n# 1 swxY w Y   |                      |t
          j        ¦  «         |                      |j        t          ¦  «         dS )z‘
        As of v4.18.0, importing ErrorTree from the package root is
        deprecated in favor of doing so from jsonschema.exceptions.
        z9Importing ErrorTree directly from the jsonschema package r   r   N)r   r   r   r    r   r   r   r   r"   s       r   Útest_import_ErrorTreez&TestDeprecations.test_import_ErrorTree)   s¾   € ð NˆØ×"Ò"Õ#5°wÑ?Ô?ð 	-À1Ø,Ð,Ð,Ð,Ð,Ð,ð	-ð 	-ð 	-ñ 	-ô 	-ð 	-ð 	-ð 	-ð 	-ð 	-ð 	-øøøð 	-ð 	-ð 	-ð 	-ð 	×Ò˜¥JÔ$8Ñ9Ô9Ð9Ø×Ò˜œ¥XÑ.Ô.Ð.Ð.Ð.r   c                 ór  — t          j        ddg¬¦  «        }t          j        ¦   «         }t          j        |g¬¦  «        }d}|                      t          |¦  «        5 }||d<   ddd¦  «         n# 1 swxY w Y   |                      |d         |¦  «         |                      |j        t          ¦  «         dS )zM
        As of v4.20.0, setting items on an ErrorTree is deprecated.
        z
some errorÚfoo)Úpath)ÚerrorszErrorTree.__setitem__ is N)r   ÚValidationErrorr    r   r   r   r   r   )r   ÚeÚtreeÚsubtreer   r   s         r   Útest_ErrorTree_setitemz'TestDeprecations.test_ErrorTree_setitem6   sï   € õ
 Ô& |¸5¸'ÐBÑBÔBˆÝÔ#Ñ%Ô%ˆÝÔ&¨q¨cÐ2Ñ2Ô2ˆà-ˆØ×"Ò"Õ#5°wÑ?Ô?ð 	"À1Ø!ˆD�‰Kð	"ð 	"ð 	"ñ 	"ô 	"ð 	"ð 	"ð 	"ð 	"ð 	"ð 	"øøøð 	"ð 	"ð 	"ð 	"ð 	×Ò˜˜eœ gÑ.Ô.Ð.Ø×Ò˜œ¥XÑ.Ô.Ð.Ð.Ð.s   ÁA0Á0A4Á7A4c                 óü   — d}|                       t          |¦  «        5 }ddlm} ddd¦  «         n# 1 swxY w Y   |                      |t
          j        ¦  «         |                      |j        t          ¦  «         dS )z“
        As of v4.18.0, importing FormatError from the package root is
        deprecated in favor of doing so from jsonschema.exceptions.
        z;Importing FormatError directly from the jsonschema package r   )ÚFormatErrorN)r   r   r   r0   r   r   r   r   )r   r   r   r0   s       r   Útest_import_FormatErrorz(TestDeprecations.test_import_FormatErrorF   s¾   € ð PˆØ×"Ò"Õ#5°wÑ?Ô?ð 	/À1Ø.Ð.Ð.Ð.Ð.Ð.ð	/ð 	/ð 	/ñ 	/ô 	/ð 	/ð 	/ð 	/ð 	/ð 	/ð 	/øøøð 	/ð 	/ð 	/ð 	/ð 	×Ò˜¥jÔ&<Ñ=Ô=Ð=Ø×Ò˜œ¥XÑ.Ô.Ð.Ð.Ð.r   c                 óü   — d}|                       t          |¦  «        5 }ddlm} ddd¦  «         n# 1 swxY w Y   |                      |t
          j        ¦  «         |                      |j        t          ¦  «         dS )z�
        As of v4.19.0, importing Validator from the package root is
        deprecated in favor of doing so from jsonschema.protocols.
        z9Importing Validator directly from the jsonschema package r   )Ú	ValidatorN)r   r   r   r3   r   r	   r   r   )r   r   r   r3   s       r   Útest_import_Validatorz&TestDeprecations.test_import_ValidatorS   s¾   € ð NˆØ×"Ò"Õ#5°wÑ?Ô?ð 	-À1Ø,Ð,Ð,Ð,Ð,Ð,ð	-ð 	-ð 	-ñ 	-ô 	-ð 	-ð 	-ð 	-ð 	-ð 	-ð 	-øøøð 	-ð 	-ð 	-ð 	-ð 	×Ò˜¥IÔ$7Ñ8Ô8Ð8Ø×Ò˜œ¥XÑ.Ô.Ð.Ð.Ð.r   c                 ó  — d}|                       t          |¦  «        5 }t          j        }ddd¦  «         n# 1 swxY w Y   |                      |t          j        ¦  «         |                      |j        t          ¦  «         dS )za
        As of v4.0.0, accessing jsonschema.validators.validators is
        deprecated.
        z8Accessing jsonschema.validators.validators is deprecatedN)r   r   r
   r   Ú_VALIDATORSr   r   ©r   r   r   Úvalues       r   Útest_validators_validatorsz+TestDeprecations.test_validators_validators`   s´   € ð MˆØ×"Ò"Õ#5°wÑ?Ô?ð 	*À1ÝÔ)ˆEð	*ð 	*ð 	*ñ 	*ô 	*ð 	*ð 	*ð 	*ð 	*ð 	*ð 	*øøøð 	*ð 	*ð 	*ð 	*ð 	×Ò˜¥
Ô 6Ñ7Ô7Ð7Ø×Ò˜œ¥XÑ.Ô.Ð.Ð.Ð.ó   ž7·;¾;c                 ó  — d}|                       t          |¦  «        5 }t          j        }ddd¦  «         n# 1 swxY w Y   |                      |t          j        ¦  «         |                      |j        t          ¦  «         dS )zc
        As of v4.0.0, accessing jsonschema.validators.meta_schemas is
        deprecated.
        z:Accessing jsonschema.validators.meta_schemas is deprecatedN)r   r   r
   Úmeta_schemasr   Ú_META_SCHEMASr   r   r7   s       r   Útest_validators_meta_schemasz-TestDeprecations.test_validators_meta_schemasm   s´   € ð OˆØ×"Ò"Õ#5°wÑ?Ô?ð 	,À1ÝÔ+ˆEð	,ð 	,ð 	,ñ 	,ô 	,ð 	,ð 	,ð 	,ð 	,ð 	,ð 	,øøøð 	,ð 	,ð 	,ð 	,ð 	×Ò˜¥
Ô 8Ñ9Ô9Ð9Ø×Ò˜œ¥XÑ.Ô.Ð.Ð.Ð.r:   c                 óJ  — t           j                             i ¦  «        }d}|                      t          |¦  «        5 }|                     d¦  «        5  	 ddd¦  «         n# 1 swxY w Y   ddd¦  «         n# 1 swxY w Y   |                      |j        t          ¦  «         dS )zC
        As of v4.0.0, RefResolver.in_scope is deprecated.
        z.jsonschema.RefResolver.in_scope is deprecated r'   N)	r
   Ú_RefResolverÚfrom_schemar   r   Úin_scoper   r   r   )r   Úresolverr   r   s       r   Útest_RefResolver_in_scopez*TestDeprecations.test_RefResolver_in_scopez   s  € õ
 Ô*×6Ò6°rÑ:Ô:ˆØBˆØ×"Ò"Õ#5°wÑ?Ô?ð 	À1Ø×"Ò" 5Ñ)Ô)ð ð Øðð ð ñ ô ð ð ð ð ð ð øøøð ð ð ð ð	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð 	×Ò˜œ¥XÑ.Ô.Ð.Ð.Ð.s5   ½A8ÁA!ÁA8Á!A%	Á%A8Á(A%	Á)A8Á8A<Á?A<c                 ó2  — t          j        i ¦  «        }d}|                      t          |¦  «        5 }|                     dddi¦  «        }ddd¦  «         n# 1 swxY w Y   |                      |¦  «         |                      |j        t          ¦  «         dS )zz
        As of v4.0.0, calling is_valid with two arguments (to provide a
        different schema) is deprecated.
        z5Passing a schema to Validator.is_valid is deprecated r'   ÚtypeÚnumberN)	r
   ÚDraft7Validatorr   r   Úis_validÚassertFalser   r   r   )r   Ú	validatorr   r   Úresults        r   Ú%test_Validator_is_valid_two_argumentsz6TestDeprecations.test_Validator_is_valid_two_arguments‡   sà   € õ Ô.¨rÑ2Ô2ˆ	ØIˆØ×"Ò"Õ#5°wÑ?Ô?ð 	CÀ1Ø×'Ò'¨°¸Ð/AÑBÔBˆFð	Cð 	Cð 	Cñ 	Cô 	Cð 	Cð 	Cð 	Cð 	Cð 	Cð 	Cøøøð 	Cð 	Cð 	Cð 	Cð 	×Ò˜Ñ Ô Ð Ø×Ò˜œ¥XÑ.Ô.Ð.Ð.Ð.s   ²AÁAÁAc                 óB  — t          j        i ¦  «        }d}|                      t          |¦  «        5 }|                     dddi¦  «        \  }ddd¦  «         n# 1 swxY w Y   |                      |j        d¦  «         |                      |j        t          ¦  «         dS )z}
        As of v4.0.0, calling iter_errors with two arguments (to provide a
        different schema) is deprecated.
        z8Passing a schema to Validator.iter_errors is deprecated r'   rF   rG   N)	r
   rH   r   r   Úiter_errorsr   rK   r   r   )r   rK   r   r   Úerrors        r   Ú(test_Validator_iter_errors_two_argumentsz9TestDeprecations.test_Validator_iter_errors_two_arguments•   sæ   € õ Ô.¨rÑ2Ô2ˆ	ØLˆØ×"Ò"Õ#5°wÑ?Ô?ð 	FÀ1Ø×*Ò*¨5°6¸8Ð2DÑEÔE‰FˆEð	Fð 	Fð 	Fñ 	Fô 	Fð 	Fð 	Fð 	Fð 	Fð 	Fð 	Føøøð 	Fð 	Fð 	Fð 	Fð 	×Ò˜œ¨&Ñ1Ô1Ð1Ø×Ò˜œ¥XÑ.Ô.Ð.Ð.Ð.s   ²AÁAÁ Ac                 ó"  — t          j        i ¦  «        }d}|                      t          |¦  «        5 }|                      |j        t           j        ¦  «         ddd¦  «         n# 1 swxY w Y   |                      |j        t          ¦  «         dS )zL
        As of v4.18.0, accessing Validator.resolver is deprecated.
        z&Accessing Draft7Validator.resolver is N)
r
   rH   r   r   ÚassertIsInstancerC   r@   r   r   r   )r   rK   r   r   s       r   Útest_Validator_resolverz(TestDeprecations.test_Validator_resolver£   sÎ   € õ
 Ô.¨rÑ2Ô2ˆ	Ø:ˆØ×"Ò"Õ#5°wÑ?Ô?ð 	OÀ1Ø×!Ò! )Ô"4µjÔ6MÑNÔNÐNð	Oð 	Oð 	Oñ 	Oô 	Oð 	Oð 	Oð 	Oð 	Oð 	Oð 	Oøøøð 	Oð 	Oð 	Oð 	Oð 	×Ò˜œ¥XÑ.Ô.Ð.Ð.Ð.s   ²&A$Á$A(Á+A(c                 ón  — d}|                       t          |¦  «        5 }ddlm} ddd¦  «         n# 1 swxY w Y   |                      |j        t          ¦  «         |                       t          |¦  «        5 }ddlm} ddd¦  «         n# 1 swxY w Y   |                      |j        t          ¦  «         dS )zA
        As of v4.18.0, RefResolver is fully deprecated.
        z$jsonschema.RefResolver is deprecatedr   )ÚRefResolverN)r   r   r   rV   r   r   r   r!   )r   r   r   rV   s       r   Útest_RefResolverz!TestDeprecations.test_RefResolver¯   s5  € ð
 9ˆØ×"Ò"Õ#5°wÑ?Ô?ð 	/À1Ø.Ð.Ð.Ð.Ð.Ð.ð	/ð 	/ð 	/ñ 	/ô 	/ð 	/ð 	/ð 	/ð 	/ð 	/ð 	/øøøð 	/ð 	/ð 	/ð 	/à×Ò˜œ¥XÑ.Ô.Ð.à×"Ò"Õ#5°wÑ?Ô?ð 	:À1Ø9Ð9Ð9Ð9Ð9Ð9ð	:ð 	:ð 	:ñ 	:ô 	:ð 	:ð 	:ð 	:ð 	:ð 	:ð 	:øøøð 	:ð 	:ð 	:ð 	:à×Ò˜œ¥XÑ.Ô.Ð.Ð.Ð.s   ž1±5¸5Á7B
Â
BÂBc                 óî  — d}|                       t          |¦  «        5 }ddlm} ddd¦  «         n# 1 swxY w Y   |                      |t
          j        ¦  «         |                      |j        t          ¦  «         |                       t          |¦  «        5 }ddl	m} ddd¦  «         n# 1 swxY w Y   |                      |t
          j        ¦  «         |                      |j        t          ¦  «         dS )zŒ
        As of v4.18.0, RefResolutionError is deprecated in favor of directly
        catching errors from the referencing library.
        z6jsonschema.exceptions.RefResolutionError is deprecatedr   ©ÚRefResolutionErrorN)
r   r   r   rZ   r   r   Ú_RefResolutionErrorr   r   Újsonschema.exceptions)r   r   r   rZ   s       r   Útest_RefResolutionErrorz(TestDeprecations.test_RefResolutionError½   s~  € ð KˆØ×"Ò"Õ#5°wÑ?Ô?ð 	6À1Ø5Ð5Ð5Ð5Ð5Ð5ð	6ð 	6ð 	6ñ 	6ô 	6ð 	6ð 	6ð 	6ð 	6ð 	6ð 	6øøøð 	6ð 	6ð 	6ð 	6ð 	×ÒÐ+­ZÔ-KÑLÔLÐLØ×Ò˜œ¥XÑ.Ô.Ð.à×"Ò"Õ#5°wÑ?Ô?ð 	AÀ1Ø@Ð@Ð@Ð@Ð@Ð@ð	Að 	Að 	Añ 	Aô 	Að 	Að 	Að 	Að 	Að 	Að 	Aøøøð 	Að 	Að 	Að 	Að 	×ÒÐ+­ZÔ-KÑLÔLÐLØ×Ò˜œ¥XÑ.Ô.Ð.Ð.Ð.s   ž1±5¸5ÂB*Â*B.Â1B.c                 óv  — t          j        ddi¦  «        }|                      t          j        j        ¦  «        5 }|                     d¦  «         ddd¦  «         n# 1 swxY w Y   t          j                             d¬¦  «        }|                      |j        t          |j        ¦  «        f|df¦  «         dS )a  
        This behavior is the intended behavior (i.e. it's not deprecated), but
        given we do "tricksy" things in the iterim to wrap exceptions in a
        multiple inheritance subclass, we need to be extra sure it works and
        stays working.
        ú$refúurn:nothingé   N)ÚrefúUnresolvable: urn:nothing)
r
   ÚDraft202012ValidatorÚassertRaisesÚreferencingr   ÚUnresolvableÚvalidater   Ú	exceptionÚstr)r   rK   r+   Úexpecteds       r   Ú#test_catching_Unresolvable_directlyz4TestDeprecations.test_catching_Unresolvable_directlyÐ   só   € õ Ô3°V¸]Ð4KÑLÔLˆ	à×Ò�{Ô5ÔBÑCÔCð 	#ÀqØ×Ò˜rÑ"Ô"Ð"ð	#ð 	#ð 	#ñ 	#ô 	#ð 	#ð 	#ð 	#ð 	#ð 	#ð 	#øøøð 	#ð 	#ð 	#ð 	#õ Ô)×6Ò6¸=Ð6ÑIÔIˆØ×ÒØŒ[�#˜aœkÑ*Ô*Ð+ØÐ2Ð3ñ	
ô 	
ð 	
ð 	
ð 	
s   »AÁA!Á$A!c                 ó4  — |                       t          ¦  «        5  ddlm} ddd¦  «         n# 1 swxY w Y   t	          j        ddi¦  «        }|                      t          j        j	        ¦  «        5 }| 
                    d¦  «         ddd¦  «         n# 1 swxY w Y   |                      |¦  «        5 }| 
                    d¦  «         ddd¦  «         n# 1 swxY w Y   |                      |j        t          |j        ¦  «        f|j        df¦  «         dS )zÉ
        Until RefResolutionError is removed, it is still possible to catch
        exceptions from reference resolution using it, even though they may
        have been raised by referencing.
        r   rY   Nr_   r`   ra   rc   )ÚassertWarnsr   r   rZ   r
   rd   re   rf   r   rg   rh   r   ri   rj   ©r   rZ   rK   Úur+   s        r   Ú1test_catching_Unresolvable_via_RefResolutionErrorzBTestDeprecations.test_catching_Unresolvable_via_RefResolutionErrorâ   s×  € ð ×ÒÕ0Ñ1Ô1ð 	6ð 	6Ø5Ð5Ð5Ð5Ð5Ð5ð	6ð 	6ð 	6ñ 	6ô 	6ð 	6ð 	6ð 	6ð 	6ð 	6ð 	6øøøð 	6ð 	6ð 	6ð 	6õ Ô3°V¸]Ð4KÑLÔLˆ	à×Ò�{Ô5ÔBÑCÔCð 	#ÀqØ×Ò˜rÑ"Ô"Ð"ð	#ð 	#ð 	#ñ 	#ô 	#ð 	#ð 	#ð 	#ð 	#ð 	#ð 	#øøøð 	#ð 	#ð 	#ð 	#ð ×ÒÐ1Ñ2Ô2ð 	#°aØ×Ò˜rÑ"Ô"Ð"ð	#ð 	#ð 	#ñ 	#ô 	#ð 	#ð 	#ð 	#ð 	#ð 	#ð 	#øøøð 	#ð 	#ð 	#ð 	#ð 	×ÒØŒ[�#˜aœkÑ*Ô*Ð+ØŒ[Ð5Ð6ñ	
ô 	
ð 	
ð 	
ð 	
ó0   ›.®2µ2Á3BÂBÂBÂ5CÃCÃCc                 óL  — |                       t          ¦  «        5  ddlm} ddd¦  «         n# 1 swxY w Y   t	          j        ddi¦  «        }|                      t          j        j	        ¦  «        5 }| 
                    d¦  «         ddd¦  «         n# 1 swxY w Y   |                      |¦  «        5 }| 
                    d¦  «         ddd¦  «         n# 1 swxY w Y   |                      |j        |j        h¦  «         |                      |j        |j        h¦  «         dS )zS
        Ensure the wrapped referencing errors are hashable when possible.
        r   rY   Nr_   r`   ra   )rn   r   r   rZ   r
   rd   re   rf   r   rg   rh   ÚassertInri   ro   s        r   Ú(test_WrappedReferencingError_hashabilityz9TestDeprecations.test_WrappedReferencingError_hashabilityø   sÐ  € ð ×ÒÕ0Ñ1Ô1ð 	6ð 	6Ø5Ð5Ð5Ð5Ð5Ð5ð	6ð 	6ð 	6ñ 	6ô 	6ð 	6ð 	6ð 	6ð 	6ð 	6ð 	6øøøð 	6ð 	6ð 	6ð 	6õ Ô3°V¸]Ð4KÑLÔLˆ	à×Ò�{Ô5ÔBÑCÔCð 	#ÀqØ×Ò˜rÑ"Ô"Ð"ð	#ð 	#ð 	#ñ 	#ô 	#ð 	#ð 	#ð 	#ð 	#ð 	#ð 	#øøøð 	#ð 	#ð 	#ð 	#ð ×ÒÐ1Ñ2Ô2ð 	#°aØ×Ò˜rÑ"Ô"Ð"ð	#ð 	#ð 	#ñ 	#ô 	#ð 	#ð 	#ð 	#ð 	#ð 	#ð 	#øøøð 	#ð 	#ð 	#ð 	#ð 	�Š�a”k A¤K =Ñ1Ô1Ð1Ø�Š�a”k A¤K =Ñ1Ô1Ð1Ð1Ð1rr   c                 óŠ  — d}|                       t          |¦  «        5 } G d„ dt          j        ¦  «        }ddd¦  «         n# 1 swxY w Y   |                      |j        t          ¦  «         |                       t          |¦  «        5 } G d„ dt          j        i ¬¦  «        ¦  «        }ddd¦  «         dS # 1 swxY w Y   dS )ac  
        As of v4.12.0, subclassing a validator class produces an explicit
        deprecation warning.

        This was never intended to be public API (and some comments over the
        years in issues said so, but obviously that's not a great way to make
        sure it's followed).

        A future version will explicitly raise an error.
        z!Subclassing validator classes is c                   ó   — e Zd ZdS )ú=TestDeprecations.test_Validator_subclassing.<locals>.SubclassN©Ú__name__Ú
__module__Ú__qualname__© ó    r   ÚSubclassrx     ó   € € € € € Ø�r~   r   Nc                   ó   — e Zd ZdS )úDTestDeprecations.test_Validator_subclassing.<locals>.AnotherSubclassNry   r}   r~   r   ÚAnotherSubclassr‚     r€   r~   rƒ   )Úmeta_schema)r   r   r
   rd   r   r   r   Úcreate)r   r   r   r   rƒ   s        r   Útest_Validator_subclassingz+TestDeprecations.test_Validator_subclassing
  si  € ð 6ˆØ×"Ò"Õ#5°wÑ?Ô?ð 	À1ðð ð ð ð �:Ô:ñ ô ð ð	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð 	×Ò˜œ¥XÑ.Ô.Ð.à×"Ò"Õ#5°wÑ?Ô?ð 	À1ðð ð ð ð ¥*Ô"3ÀÐ"CÑ"CÔ"Cñ ô ð ð	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð 	ð 	s#   žAÁAÁ
AÂ	"B8Â8B<Â?B<c                 ó$  — |                       t          j        j        dd¦  «         d}|                      t
          |¦  «        5 }t          j        d¦  «         ddd¦  «         n# 1 swxY w Y   |                      |j        t          ¦  «         dS )zd
        As of v4.14.0, FormatChecker.cls_checks is deprecated without
        replacement.
        ÚboomNzFormatChecker.cls_checks )
Ú
addCleanupr   ÚcheckersÚpopr   r   Ú
cls_checksr   r   r   )r   r   r   s      r   Útest_FormatChecker_cls_checksz.TestDeprecations.test_FormatChecker_cls_checks!  s¿   € ð 	�Š�Ô.Ô2°F¸DÑAÔAÐAà-ˆØ×"Ò"Õ#5°wÑ?Ô?ð 	-À1ÝÔ$ VÑ,Ô,Ð,ð	-ð 	-ð 	-ñ 	-ô 	-ð 	-ð 	-ð 	-ð 	-ð 	-ð 	-øøøð 	-ð 	-ð 	-ð 	-ð 	×Ò˜œ¥XÑ.Ô.Ð.Ð.Ð.s   ÁA%Á%A)Á,A)c                 óx  — d}|                       t          |¦  «        5 }ddlm} ddd¦  «         n# 1 swxY w Y   |                      |t
          j        j        ¦  «         |                      |j	        t          ¦  «         d}|                       t          |¦  «        5 }ddlm} ddd¦  «         n# 1 swxY w Y   |                      |t
          j        j        ¦  «         |                      |j	        t          ¦  «         d}|                       t          |¦  «        5 }ddlm} ddd¦  «         n# 1 swxY w Y   |                      |t
          j        j        ¦  «         |                      |j	        t          ¦  «         d	}|                       t          |¦  «        5 }dd
lm} ddd¦  «         n# 1 swxY w Y   |                      |t
          j        j        ¦  «         |                      |j	        t          ¦  «         d}|                       t          |¦  «        5 }ddlm} ddd¦  «         n# 1 swxY w Y   |                      |t
          j        j        ¦  «         |                      |j	        t          ¦  «         d}|                       t          |¦  «        5 }ddlm} ddd¦  «         n# 1 swxY w Y   |                      |t
          j        j        ¦  «         |                      |j	        t          ¦  «         |                      t,          ¦  «        5  ddlm}	 ddd¦  «         dS # 1 swxY w Y   dS )z‡
        As of v4.16.0, accessing jsonschema.draftn_format_checker is deprecated
        in favor of Validator.FORMAT_CHECKER.
        z3Accessing jsonschema.draft202012_format_checker is r   )Údraft202012_format_checkerNz3Accessing jsonschema.draft201909_format_checker is )Údraft201909_format_checkerz.Accessing jsonschema.draft7_format_checker is )Údraft7_format_checkerz.Accessing jsonschema.draft6_format_checker is )Údraft6_format_checkerz.Accessing jsonschema.draft4_format_checker is )Údraft4_format_checkerz.Accessing jsonschema.draft3_format_checker is )Údraft3_format_checker)Údraft1234_format_checker)r   r   r   r�   ÚassertIsr
   rd   ÚFORMAT_CHECKERr   r   r   r�   ÚDraft201909Validatorr‘   rH   r’   ÚDraft6Validatorr“   ÚDraft4Validatorr”   ÚDraft3Validatorre   ÚImportErrorr•   )
r   r   r   r�   r�   r‘   r’   r“   r”   r•   s
             r   Útest_draftN_format_checkerz+TestDeprecations.test_draftN_format_checker/  s  € ð HˆØ×"Ò"Õ#5°wÑ?Ô?ð 	>À1Ø=Ð=Ð=Ð=Ð=Ð=ð	>ð 	>ð 	>ñ 	>ô 	>ð 	>ð 	>ð 	>ð 	>ð 	>ð 	>øøøð 	>ð 	>ð 	>ð 	>ð 	�ŠØ&ÝÔ+Ô:ñ	
ô 	
ð 	
ð 	×Ò˜œ¥XÑ.Ô.Ð.àGˆØ×"Ò"Õ#5°wÑ?Ô?ð 	>À1Ø=Ð=Ð=Ð=Ð=Ð=ð	>ð 	>ð 	>ñ 	>ô 	>ð 	>ð 	>ð 	>ð 	>ð 	>ð 	>øøøð 	>ð 	>ð 	>ð 	>ð 	�ŠØ&ÝÔ+Ô:ñ	
ô 	
ð 	
ð 	×Ò˜œ¥XÑ.Ô.Ð.àBˆØ×"Ò"Õ#5°wÑ?Ô?ð 	9À1Ø8Ð8Ð8Ð8Ð8Ð8ð	9ð 	9ð 	9ñ 	9ô 	9ð 	9ð 	9ð 	9ð 	9ð 	9ð 	9øøøð 	9ð 	9ð 	9ð 	9ð 	�ŠØ!ÝÔ&Ô5ñ	
ô 	
ð 	
ð 	×Ò˜œ¥XÑ.Ô.Ð.àBˆØ×"Ò"Õ#5°wÑ?Ô?ð 	9À1Ø8Ð8Ð8Ð8Ð8Ð8ð	9ð 	9ð 	9ñ 	9ô 	9ð 	9ð 	9ð 	9ð 	9ð 	9ð 	9øøøð 	9ð 	9ð 	9ð 	9ð 	�ŠØ!ÝÔ&Ô5ñ	
ô 	
ð 	
ð 	×Ò˜œ¥XÑ.Ô.Ð.àBˆØ×"Ò"Õ#5°wÑ?Ô?ð 	9À1Ø8Ð8Ð8Ð8Ð8Ð8ð	9ð 	9ð 	9ñ 	9ô 	9ð 	9ð 	9ð 	9ð 	9ð 	9ð 	9øøøð 	9ð 	9ð 	9ð 	9ð 	�ŠØ!ÝÔ&Ô5ñ	
ô 	
ð 	
ð 	×Ò˜œ¥XÑ.Ô.Ð.àBˆØ×"Ò"Õ#5°wÑ?Ô?ð 	9À1Ø8Ð8Ð8Ð8Ð8Ð8ð	9ð 	9ð 	9ñ 	9ô 	9ð 	9ð 	9ð 	9ð 	9ð 	9ð 	9øøøð 	9ð 	9ð 	9ð 	9ð 	�ŠØ!ÝÔ&Ô5ñ	
ô 	
ð 	
ð 	×Ò˜œ¥XÑ.Ô.Ð.à×Ò�{Ñ+Ô+ð 	<ð 	<Ø;Ð;Ð;Ð;Ð;Ð;ð	<ð 	<ð 	<ñ 	<ô 	<ð 	<ð 	<ð 	<ð 	<ð 	<ð 	<ð 	<øøøð 	<ð 	<ð 	<ð 	<ð 	<ð 	<sx   ž1±5¸5ÂB1Â1B5Â8B5ÄD1Ä1D5Ä8D5ÆF1Æ1F5Æ8F5ÈH1È1H5È8H5ÊJ1Ê1J5Ê8J5ÌL/Ì/L3Ì6L3c                 óô   — d}|                       t          |¦  «        5 }ddl}t          j        |j        ¦  «         ddd¦  «         n# 1 swxY w Y   |                      |j        t          j        ¦  «         dS )zH
        As of v4.17.0, importing jsonschema.cli is deprecated.
        z5The jsonschema CLI is deprecated and will be removed r   N)	r   r   Újsonschema.clir   ÚreloadÚclir   r   r   )r   r   r   r   s       r   Útest_import_cliz TestDeprecations.test_import_clit  sµ   € ð
 JˆØ×"Ò"Õ#5°wÑ?Ô?ð 	-À1Ø!Ð!Ð!Ð!ÝÔ˜Zœ^Ñ,Ô,Ð,ð	-ð 	-ð 	-ñ 	-ô 	-ð 	-ð 	-ð 	-ð 	-ð 	-ð 	-øøøð 	-ð 	-ð 	-ð 	-ð 	×Ò˜œ¥YÔ%7Ñ8Ô8Ð8Ð8Ð8s   žAÁAÁAc                 ó„   — t          j        t          j        ddgdd¬¦  «        }|                      d|j        ¦  «         dS )zB
        As of v4.17.0, the jsonschema CLI is deprecated.
        z-mr   T)Úcapture_outputÚchecks!   The jsonschema CLI is deprecated N)Ú
subprocessÚrunÚsysÚ
executablert   Ústderr)r   Úprocesss     r   Útest_clizTestDeprecations.test_cli€  sK   € õ
 ”.ÝŒ^˜T <Ð0ØØð
ñ 
ô 
ˆð
 	�ŠÐ:¸G¼NÑKÔKÐKÐKÐKr~   c                 óŠ  ‡ ‡— d}ddddiiiŠdt           j        v r6‰                      t           j        j        dt           j        d         ¦  «         dt           j        d<   t          ˆˆ fd„¦   «         }t          j        d	|i¦  «        }d
}t          j         	                    t          j        d|¬¦  «        }|5  ‰                      t          |¦  «        5  ‰                      |                     i ¦  «        |                     d¦  «        fd¦  «         ddd¦  «         n# 1 swxY w Y   ddd¦  «         dS # 1 swxY w Y   dS )zW
        Automatic retrieval of remote references is deprecated as of v4.18.0.
        zhttp://bar#/$defs/bazz$defsÚbazrF   ÚintegerÚrequestsNc              3   ó¦  •K  — ‰                      | t          j        j        ¦  «         ‰                     | j        d¦  «         |                      ¦   «         \  \  }}‰                     |                     ¦   «         d¦  «         ‰                     |d¦  «         t          t          j
        ‰¦  «                             d¦  «        ¦  «        V — d S )Nz
http://barz
user-agentz.python-jsonschema (deprecated $ref resolution)Úutf8)rS   ÚurllibÚrequestÚRequestr   Úfull_urlÚheader_itemsÚlowerr   ÚjsonÚdumpsÚencode)r´   Úheaderr8   Úschemar   s      €€r   Úfake_urlopenzFTestDeprecations.test_automatic_remote_retrieval.<locals>.fake_urlopen™  sÅ   øè è € à×!Ò! '­6¬>Ô+AÑBÔBÐBØ×Ò˜WÔ-¨|Ñ<Ô<Ð<ð  '×3Ò3Ñ5Ô5Ñ‰OˆV�UØ×Ò˜VŸ\š\™^œ^¨\Ñ:Ô:Ð:Ø×ÒØÐGñô ð õ �$œ* VÑ,Ô,×3Ò3°FÑ;Ô;Ñ<Ô<Ð<Ð<Ð<Ð<Ð<r~   r_   z+Automatically retrieving remote references Úurlopen)Únewé%   )FT)r¨   Úmodulesr‰   Ú__setitem__r   r
   rd   r   ÚpatchÚobjectr³   r´   r   r   r   rI   )r   rb   r¾   rK   r   rÄ   r½   s   `     @r   Útest_automatic_remote_retrievalz0TestDeprecations.test_automatic_remote_retrievalŒ  sØ  øø€ ð &ˆØ˜E F¨IÐ#6Ð7Ð8ˆà�œÐ$Ð$Ø�OŠOÝ”Ô'¨µS´[ÀÔ5Lñô ð ð #'�Œ�JÑå	ð	=ð 	=ð 	=ð 	=ð 	=ñ 
Œð	=õ Ô3°V¸S°MÑBÔBˆ	à?ˆÝ”
×!Ò!¥&¤.°)ÀÐ!ÑNÔNˆàð 	ð 	�D×)Ò)Õ*<¸gÑFÔFð 	ð 	Ø×ÒØ×#Ò# BÑ'Ô'¨×);Ò);¸BÑ)?Ô)?Ð@Øñô ð ð	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð 	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð 	ð 	s6   Â9D8Ã?D ÄD8Ä D$	Ä$D8Ä'D$	Ä(D8Ä8D<Ä?D<N)rz   r{   r|   r   r#   r%   r.   r1   r4   r9   r>   rD   rM   rQ   rT   rW   r]   rl   rq   ru   r†   r�   r�   r¢   r¬   rÆ   r}   r~   r   r   r      st  € € € € € ð
/ð 
/ð 
/ð/ð /ð /ð/ð /ð /ð/ð /ð /ð /ð /ð /ð/ð /ð /ð/ð /ð /ð/ð /ð /ð/ð /ð /ð/ð /ð /ð/ð /ð /ð
/ð 
/ð 
/ð/ð /ð /ð/ð /ð /ð&
ð 
ð 
ð$
ð 
ð 
ð,2ð 2ð 2ð$ð ð ð./ð /ð /ðC<ð C<ð C<ðJ
9ð 
9ð 
9ð
Lð 
Lð 
Lð$ð $ð $ð $ð $r~   r   )Ú
contextlibr   Úior   Úunittestr   r   Úimportlib.metadatar   r¹   r¦   r¨   Úurllib.requestr³   Úreferencing.exceptionsrf   r   r   r   r	   r
   r   r}   r~   r   ú<module>rÍ      så   ðØ %Ð %Ð %Ð %Ð %Ð %Ø Ð Ð Ð Ð Ð Ø #Ð #Ð #Ð #Ð #Ð #Ð #Ð #Ø Ð Ð Ð Ø €€€Ø Ð Ð Ð Ø 
€
€
€
Ø Ð Ð Ð à Ð Ð Ð à GÐ GÐ GÐ GÐ GÐ GÐ GÐ GÐ GÐ GÐ GÐ Gðað að að að a�xñ aô að að að ar~   