File: //var/opt/nydus/ops/jsonschema/tests/__pycache__/fuzz_validate.cpython-39.pyc
a
�,�hZ � @ s� d Z ddlZddlmZmZ ddlZe�e�� e�� ej ddd�e�
� �Zeje�e�� e�
e�
� e��dd� d�Zeeed �d
d� �Zdd
� Zedkr�ddlZe� dS )z�
Fuzzing setup for OSS-Fuzz.
See https://github.com/google/oss-fuzz/tree/master/projects/jsonschema for the
other half of the setup here.
� N)�given�
strategiesF)� allow_nanZallow_infinityc C s t �t �� | �S )N)r �dictionaries�text)�inner� r �O/opt/nydus/tmp/pip-target-wkfpz8uv/lib/python/jsonschema/tests/fuzz_validate.py�<lambda> � r
)�base�extend�Zobj1�obj2c C sB zt j| |d� W n* t jjy( Y n t jjy< Y n0 d S )N)�instanceZschema)�
jsonschema�validate�
exceptionsZValidationErrorZSchemaErrorr r r r �test_schemas s r c C s* t �� t jtjtjjdd� t �� d S )NT)Zenable_python_coverage) �atherisZinstrument_all�Setup�sys�argvr �
hypothesisZfuzz_one_inputZFuzzr r r r �main&