File: //var/opt/nydus/ops/jsonschema/tests/__pycache__/_suite.cpython-39.pyc
a
�,�h� � @ sT d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m
Z
mZ ddlZddl
Z
ddlZddlZddlZddlmZmZ dd lmZ ddlZe
r�dd
lmZmZmZ ddlmZ ddlZddlmZ ddlZd
Z e�!d�Z"dd� Z#eG dd� d��Z$eG dd� d��Z%eG dd� d��Z&ddddd�dd�Z'edd�G dd � d ��Z(d!d"� Z)dS )#z=
Python representations of the JSON Schema Test Suite tests.
� )�annotations)�suppress)�partial)�Path)�
TYPE_CHECKING�AnyN)�field�frozen)�Registry)�Iterable�Mapping�Sequence)�Schema)�_VALIDATORSzhttp://localhost:1234z[\W\- ]+c C sB t j�d�} | d urt| �S ttj�jjd } | �� s>td��| S )NZJSON_SCHEMA_TEST_SUITE�jsonz�Can't find the JSON-Schema-Test-Suite directory. Set the 'JSON_SCHEMA_TEST_SUITE' environment variable or run the tests from alongside a checkout of the suite.) �os�environ�getr �
jsonschema�__file__�parent�is_dir�
ValueError)�root� r �H/opt/nydus/tmp/pip-target-wkfpz8uv/lib/python/jsonschema/tests/_suite.py�_find_suite"