| Server IP : 178.105.222.151 / Your IP : 216.73.216.38 Web Server : nginx/1.28.3 System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.5.4 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 : |
+
P4i�L � � � ^ RI Ht ^ RIt^ RIHt ^ RIHt ! R R]4 t ! R R]4 t ! R R
]4 t ! R R]4 t
! R
R]4 tR# )� )�TestCaseN)�
exceptions)�_LATEST_VERSIONc � a � ] tR t^t o R tR tR tR tR tR t R t
R tR tR
t
R tR tR
tR tR tR tRtV tR# )�
TestBestMatchc �2 � \ \ V4 P V4 4 p\ P ! \ V4 4 p\ P ! \
V4 4 pV P VP 4 VP 4 R V RV 24 V# )zNo consistent best match!
Got: z
Then: ) �listr �iter_errorsr �
best_match�iter�reversed�assertEqual� _contents)�self�instance�schema�errors�best�
reversed_bests &&& �B/usr/lib/python3/dist-packages/jsonschema/tests/test_exceptions.py�
best_match_of�TestBestMatch.best_match_of s� � ��o�f�-�9�9�(�C�D���$�$�T�&�\�2��"�-�-�h�v�.>�?�
�����N�N���#�#�%�.�t�f�J�}�o�N�
�
�� c � � R RR^R RRR/////pV P RR. //VR7 pV P VP R4 R# )�
properties�foo�
minProperties�bar�type�object�r r N�r r � validator�r r r s & r �(test_shallower_errors_are_better_matches�6TestBestMatch.test_shallower_errors_are_better_matches sa � ���#�Q� �5�6�8�*<�"=���
�� �!�!�E�E�2�;�+?��!�O���������9r c � � R^RRR/RR/.RRR/RR/./pV P / VR7 pV P VP R4 R# ) zV
A property you *must* match is probably better than one you have to
match a part of.
r �anyOfr �string�number�oneOfr! Nr"