Ë
    ùmxiŠ=  ã                   óŠ   — 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y)é    )Ú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y)ÚTestDeprecationsc                 ó  — d}| j                  t        |«      5 }ddlm} ddd«       | j	                  t
        j                  j                  d«      «       | j	                  j                  t        «       y# 1 sw Y   ŒYxY w)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       úY/home/htdocs/ttos/venv/lib/python3.12/site-packages/jsonschema/tests/test_deprecations.pyÚtest_versionzTestDeprecations.test_version   sl   € ð
 CˆØ×"Ñ"Ô#5°wÓ?ð 	/À1Ý.÷	/ð 	×Ñ˜¤i×&8Ñ&8×&@Ñ&@ÀÓ&NÔOØ×Ñ˜Ÿ™¤XÕ.÷		/ð 	/ús   ™A8Á8Bc                 óê   — d}| j                  t        |«      5 }ddlm} ddd«       | j	                  t
        j                  «       | j	                  j                  t        «       y# 1 sw Y   ŒJxY w)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   sa   € ð GˆØ×"Ñ"Ô#5°wÓ?ð 	8À1Ý7÷	8ð 	×Ñ˜¤J×$8Ñ$8Ô9Ø×Ñ˜Ÿ™¤XÕ.÷		8ð 	8úó   ™A)Á)A2c                 óê   — d}| j                  t        |«      5 }ddlm} ddd«       | j	                  t
        j                  «       | j	                  j                  t        «       y# 1 sw Y   ŒJxY w)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)   sa   € ð NˆØ×"Ñ"Ô#5°wÓ?ð 	-À1Ý,÷	-ð 	×Ñ˜¤J×$8Ñ$8Ô9Ø×Ñ˜Ÿ™¤XÕ.÷		-ð 	-úr#   c                 óX  — t        j                  ddg¬«      }t        j                  «       }t        j                  |g¬«      }d}| j                  t        |«      5 }||d<   ddd«       | j                  |d   |«       | j                  j                  t        «       y# 1 sw Y   Œ?xY w)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ˆÜ×#Ñ#Ó%ˆÜ×&Ñ&¨q¨cÔ2ˆà-ˆØ×"Ñ"Ô#5°wÓ?ð 	"À1Ø!ˆD�‰K÷	"ð 	×Ñ˜˜e™ gÔ.Ø×Ñ˜Ÿ™¤XÕ.÷		"ð 	"ús   ÁB Â B)c                 óê   — d}| j                  t        |«      5 }ddlm} ddd«       | j	                  t
        j                  «       | j	                  j                  t        «       y# 1 sw Y   ŒJxY w)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   sa   € ð PˆØ×"Ñ"Ô#5°wÓ?ð 	/À1Ý.÷	/ð 	×Ñ˜¤j×&<Ñ&<Ô=Ø×Ñ˜Ÿ™¤XÕ.÷		/ð 	/úr#   c                 óê   — d}| j                  t        |«      5 }ddlm} ddd«       | j	                  t
        j                  «       | j	                  j                  t        «       y# 1 sw Y   ŒJxY w)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   sa   € ð NˆØ×"Ñ"Ô#5°wÓ?ð 	-À1Ý,÷	-ð 	×Ñ˜¤I×$7Ñ$7Ô8Ø×Ñ˜Ÿ™¤XÕ.÷		-ð 	-úr#   c                 óþ   — d}| j                  t        |«      5 }t        j                  }ddd«       | j                  t        j                  «       | j                  j
                  t        «       y# 1 sw Y   ŒJxY w)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`   si   € ð MˆØ×"Ñ"Ô#5°wÓ?ð 	*À1Ü×)Ñ)ˆE÷	*ð 	×Ñ˜¤
× 6Ñ 6Ô7Ø×Ñ˜Ÿ™¤XÕ.÷		*ð 	*úó   ™A3Á3A<c                 óþ   — d}| j                  t        |«      5 }t        j                  }ddd«       | j	                  t        j
                  «       | j	                  j                  t        «       y# 1 sw Y   ŒJxY w)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   si   € ð OˆØ×"Ñ"Ô#5°wÓ?ð 	,À1Ü×+Ñ+ˆE÷	,ð 	×Ñ˜¤
× 8Ñ 8Ô9Ø×Ñ˜Ÿ™¤XÕ.÷		,ð 	,úr:   c                 ó*  — t         j                  j                  i «      }d}| j                  t        |«      5 }|j                  d«      5  	 ddd«       ddd«       | j                  j                  t        «       y# 1 sw Y   Œ2xY w# 1 sw Y   Œ6xY w)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Õ.÷ð ú÷	ð 	ús#   ¸B	Á
A=ÁB	Á=B	ÂB	Â	Bc                 ó  — t        j                  i «      }d}| j                  t        |«      5 }|j	                  dddi«      }ddd«       | j                  «       | j                  j                  t        «       y# 1 sw Y   Œ;xY w)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ˆ	ØIˆØ×"Ñ"Ô#5°wÓ?ð 	CÀ1Ø×'Ñ'¨°¸Ð/AÓBˆF÷	Cð 	×Ñ˜Ô Ø×Ñ˜Ÿ™¤XÕ.÷		Cð 	Cús   ®A=Á=Bc                 ó,  — t        j                  i «      }d}| j                  t        |«      5 }|j	                  dddi«      \  }ddd«       | j                  j                  d«       | j                  j                  t        «       y# 1 sw Y   ŒFxY w)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ˆ	ØLˆØ×"Ñ"Ô#5°wÓ?ð 	FÀ1Ø×*Ñ*¨5°6¸8Ð2DÓE‰FˆE÷	Fð 	×Ñ˜Ÿ™¨&Ô1Ø×Ñ˜Ÿ™¤XÕ.÷		Fð 	Fús   ®B
Â
Bc                 ó  — t        j                  i «      }d}| j                  t        |«      5 }| j	                  |j
                  t         j                  «       ddd«       | j                  j                  t        «       y# 1 sw Y   Œ*xY w)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£   sw   € ô
 ×.Ñ.¨rÓ2ˆ	Ø:ˆØ×"Ñ"Ô#5°wÓ?ð 	OÀ1Ø×!Ñ! )×"4Ñ"4´j×6MÑ6MÔN÷	Oð 	×Ñ˜Ÿ™¤XÕ.÷	Oð 	Oús   ®+BÂBc                 óL  — d}| j                  t        |«      5 }ddlm} ddd«       | j	                  j
                  t        «       | j                  t        |«      5 }ddlm} ddd«       | j	                  |j
                  t        «       y# 1 sw Y   ŒoxY w# 1 sw Y   Œ6xY w)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¯   s‡   € ð
 9ˆØ×"Ñ"Ô#5°wÓ?ð 	/À1Ý.÷	/à×Ñ˜Ÿ™¤XÔ.à×"Ñ"Ô#5°wÓ?ð 	:À1Ý9÷	:à×Ñ˜Ÿ™¤XÕ.÷	/ð 	/ú÷	:ð 	:ús   ™BÁBÂBÂB#c                 óÌ  — d}| j                  t        |«      5 }ddlm} ddd«       | j	                  t
        j                  «       | j	                  j                  t        «       | j                  t        |«      5 }ddl	m} ddd«       | j	                  |t
        j                  «       | j	                  |j                  t        «       y# 1 sw Y   Œ¯xY w# 1 sw Y   ŒVxY w)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÷	6ð 	×ÑÐ+¬Z×-KÑ-KÔLØ×Ñ˜Ÿ™¤XÔ.à×"Ñ"Ô#5°wÓ?ð 	AÀ1Ý@÷	Að 	×ÑÐ+¬Z×-KÑ-KÔLØ×Ñ˜Ÿ™¤XÕ.÷	6ð 	6ú÷	Að 	Aús   ™CÁ>CÃCÃC#c                 óv  — t        j                  ddi«      }| j                  t        j                  j
                  «      5 }|j                  d«       ddd«       t        j                  j                  d¬«      }| j                  j                  t        |j                  «      f|df«       y# 1 sw Y   Œ]xY w)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Ñ3°V¸]Ð4KÓLˆ	à×Ñœ{×5Ñ5×BÑBÓCð 	#ÀqØ×Ñ˜rÔ"÷	#ô ×)Ñ)×6Ñ6¸=Ð6ÓIˆØ×ÑØ�[‰[œ#˜aŸk™kÓ*Ð+ØÐ2Ð3õ	
÷		#ð 	#ús   ÁB/Â/B8c                 ó  — | j                  t        «      5  ddlm} ddd«       t	        j
                  ddi«      }| j                  t        j                  j                  «      5 }|j                  d«       ddd«       | j                  «      5 }|j                  d«       ddd«       | j                  j                  t        |j                  «      fj                  df«       y# 1 sw Y   ŒÌxY w# 1 sw Y   Œ~xY w# 1 sw Y   Œ_xY w)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ñ 	6Ý5÷	6ô ×3Ñ3°V¸]Ð4KÓLˆ	à×Ñœ{×5Ñ5×BÑBÓCð 	#ÀqØ×Ñ˜rÔ"÷	#ð ×ÑÐ1Ó2ð 	#°aØ×Ñ˜rÔ"÷	#ð 	×ÑØ�[‰[œ#˜aŸk™kÓ*Ð+Ø�[‰[Ð5Ð6õ	
÷	6ð 	6ú÷
	#ð 	#ú÷	#ð 	#ús#   –C(Á%C4ÂD Ã(C1Ã4C=Ä D	c                 ó:  — | j                  t        «      5  ddlm} ddd«       t	        j
                  ddi«      }| j                  t        j                  j                  «      5 }|j                  d«       ddd«       | j                  «      5 }|j                  d«       ddd«       | j                  j                  j                  h«       | j                  |j                  |j                  h«       y# 1 sw Y   ŒÝxY w# 1 sw Y   Œ�xY w# 1 sw Y   ŒpxY w)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ñ 	6Ý5÷	6ô ×3Ñ3°V¸]Ð4KÓLˆ	à×Ñœ{×5Ñ5×BÑBÓCð 	#ÀqØ×Ñ˜rÔ"÷	#ð ×ÑÐ1Ó2ð 	#°aØ×Ñ˜rÔ"÷	#ð 	�‰�a—k‘k A§K¡K =Ô1Ø�‰�a—k‘k A§K¡K =Õ1÷	6ð 	6ú÷
	#ð 	#ú÷	#ð 	#ús#   –C9Á%DÂDÃ9DÄDÄDc                 ód  — d}| j                  t        |«      5 } G d„ dt        j                  «      }ddd«       | j	                  j
                  t        «       | j                  t        |«      5 } G d„ dt        j                  i ¬«      «      }ddd«       y# 1 sw Y   ŒhxY w# 1 sw Y   yxY w)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y)ú=TestDeprecations.test_Validator_subclassing.<locals>.SubclassN©Ú__name__Ú
__module__Ú__qualname__© ó    r   ÚSubclassrw     ó   „ Ør}   r~   Nc                   ó   — e Zd Zy)úDTestDeprecations.test_Validator_subclassing.<locals>.AnotherSubclassNrx   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
  s�   € ð 6ˆØ×"Ñ"Ô#5°wÓ?ð 	À1ôœ:×:Ñ:ô ÷	ð 	×Ñ˜Ÿ™¤XÔ.à×"Ñ"Ô#5°wÓ?ð 	À1ô¤*×"3Ñ"3ÀÔ"Cô ÷	ð 	÷	ð 	ú÷	ð 	ús   ™BÁ1 B&ÂB#Â&B/c                 ó  — | j                  t        j                  j                  dd«       d}| j	                  t
        |«      5 }t        j                  d«       ddd«       | j                  j                  t        «       y# 1 sw Y   Œ*xY w)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!  sq   € ð 	�‰œ×.Ñ.×2Ñ2°F¸DÔAà-ˆØ×"Ñ"Ô#5°wÓ?ð 	-À1Ü×$Ñ$ VÔ,÷	-ð 	×Ñ˜Ÿ™¤XÕ.÷	-ð 	-ús   ÁBÂBc                 óJ  — d}| j                  t        |«      5 }ddlm} ddd«       | j	                  t
        j                  j                  «       | j                  j                  t        «       d}| j                  t        |«      5 }ddlm} ddd«       | j	                  t
        j                  j                  «       | j                  |j                  t        «       d}| j                  t        |«      5 }ddlm} ddd«       | j	                  t
        j                  j                  «       | j                  |j                  t        «       d	}| j                  t        |«      5 }dd
lm} ddd«       | j	                  t
        j                   j                  «       | j                  |j                  t        «       d}| j                  t        |«      5 }ddlm} ddd«       | j	                  t
        j$                  j                  «       | j                  |j                  t        «       d}| j                  t        |«      5 }ddlm} ddd«       | j	                  t
        j(                  j                  «       | j                  |j                  t        «       | j+                  t,        «      5  ddlm}	 ddd«       y# 1 sw Y   �Œ®xY w# 1 sw Y   �ŒJxY w# 1 sw Y   �ŒæxY w# 1 sw Y   �Œ‚xY w# 1 sw Y   �ŒxY w# 1 sw Y   Œ¹xY w# 1 sw Y   yxY w)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÷	9ð 	�‰Ø!Ü×&Ñ&×5Ñ5ô	
ð 	×Ñ˜Ÿ™¤XÔ.àBˆØ×"Ñ"Ô#5°wÓ?ð 	9À1Ý8÷	9ð 	�‰Ø!Ü×&Ñ&×5Ñ5ô	
ð 	×Ñ˜Ÿ™¤XÔ.àBˆØ×"Ñ"Ô#5°wÓ?ð 	9À1Ý8÷	9ð 	�‰Ø!Ü×&Ñ&×5Ñ5ô	
ð 	×Ñ˜Ÿ™¤XÔ.àBˆØ×"Ñ"Ô#5°wÓ?ð 	9À1Ý8÷	9ð 	�‰Ø!Ü×&Ñ&×5Ñ5ô	
ð 	×Ñ˜Ÿ™¤XÔ.à×Ñœ{Ó+ñ 	<Ý;÷	<ð 	<÷w	>ñ 	>ú÷	>ñ 	>ú÷	9ñ 	9ú÷	9ñ 	9ú÷	9ñ 	9ú÷	9ð 	9ú÷	<ð 	<úsS   ™KÂ
KÃ;K&Å,K3ÇL ÉLÊ<LËKËK#Ë&K0Ë3K=Ì L
ÌLÌL"c                 óø   — d}| j                  t        |«      5 }ddl}t        j                  |j
                  «       ddd«       | j                  j                  t        j                  «       y# 1 sw Y   Œ4xY w)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  sc   € ð
 JˆØ×"Ñ"Ô#5°wÓ?ð 	-À1Û!Ü×Ñ˜ZŸ^™^Ô,÷	-ð 	×Ñ˜Ÿ™¤Y×%7Ñ%7Õ8÷		-ð 	-ús   ™$A0Á0A9c                 óŽ   — t        j                  t        j                  ddgdd¬«      }| j	                  d|j
                  «       y)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Ú
executablers   Ústderr)r   Úprocesss     r   Útest_clizTestDeprecations.test_cli€  s;   € ô
 —.‘.Ü�^‰^˜T <Ð0ØØô
ˆð
 	�‰Ð:¸G¿N¹NÕKr}   c                 óv  ‡ ‡— d}ddddiiiŠdt         j                  v r<‰ j                  t         j                  j                  dt         j                  d   «       dt         j                  d<   t        ˆˆ fd„«       }t        j                  d	|i«      }d
}t        j                  j                  t        j                  d|¬«      }|5  ‰ j                  t        |«      5  ‰ j                  |j                  i «      |j                  d«      fd«       ddd«       ddd«       y# 1 sw Y   ŒxY w# 1 sw Y   yxY w)zW
        Automatic retrieval of remote references is deprecated as of v4.18.0.
        zhttp://bar#/$defs/bazz$defsÚbazrF   ÚintegerÚrequestsNc              3   ó†  •K  — ‰j                  | t        j                  j                  «       ‰j	                  | j
                  d«       | j                  «       \  \  }}‰j	                  |j                  «       d«       ‰j	                  |d«       t        t        j                  ‰«      j                  d«      «      –— y ­w)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Ñ+AÔBØ×Ñ˜W×-Ñ-¨|Ô<ð  '×3Ñ3Ó5Ñ‰OˆV�UØ×Ñ˜VŸ\™\›^¨\Ô:Ø×ÑØÐGôô œ$Ÿ*™* VÓ,×3Ñ3°FÓ;Ó<Ó<ùs   ƒB>C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Ñ3°V¸S°MÓBˆ	à?ˆÜ—
‘
×!Ñ!¤&§.¡.°)ÀÐ!ÓNˆàñ 	�D×)Ñ)Ô*<¸gÓFñ 	Ø×ÑØ×#Ñ# BÓ'¨×);Ñ);¸BÓ)?Ð@Øô÷	÷ 	÷ 	ñ 	ú÷ 	ð 	ús$   ÃD/Ã3D#ÄD/Ä#D,	Ä(D/Ä/D8N)ry   rz   r{   r   r"   r%   r.   r1   r4   r9   r>   rD   rM   rQ   rT   rW   r]   rl   rq   rt   r…   rŒ   rœ   r¡   r«   rÅ   r|   r}   r   r   r      sx   „ ò
/ò/ò/ò/ò /ò/ò/ò/ò/ò/ò/ò
/ò/ò/ò&
ò$
ò,2ò$ò./òC<òJ
9ò
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Ì      s4   ðÝ %Ý ß #Û Û Û Û 
Û ã ç GÓ Gôa�xõ ar}   