관리-도구
편집 파일: __init__.cpython-37.opt-1.pyc
B VX�Y� � @ s� d dl mZ d dlZd dlZd dlZd dlZG dd� dej�ZG dd� dej�Z ddd�Z d d � Zdd� Ze d kr�d dlZd dlZej�d ej�ej�ej�ej�e����� e� dS )� )�absolute_importNc @ s e Zd Zdd� ZdS )�NoExtensionTestSuitec C s. dd l }|�d� tj�| |�}|�d� |S )Nr FT)� simplejsonZ_toggle_speedups�unittest� TestSuite�run)�self�resultr � r �L/opt/alt/python37/lib64/python3.7/site-packages/simplejson/tests/__init__.pyr s zNoExtensionTestSuite.runN)�__name__� __module__�__qualname__r r r r r r s r c @ s e Zd Zdd� ZdS )�TestMissingSpeedupsc C s$ t td�rnt | d�r | �d� d S )NZpypy_translation_info�skipTestz_speedups.so is missing!)�hasattr�sysr )r r r r �runTest s zTestMissingSpeedups.runTestN)r r r r r r r r r s r c C sd dd l }dd l}dd l}| d kr(t�� } x&||j|jfD ]}| �t� |�� q8W | �t� d�� | S )Nr z../../index.rst)r Zsimplejson.encoderZsimplejson.decoderr r �encoder�decoder�addTest�doctestZDocTestSuiteZDocFileSuite)�suiter �modr r r �additional_tests s r c C sJ dd� } | � }dd l }|�� d kr0|�t� � nt�|t| � g�g�}|S )Nc S s. dd� t �t j�t��D �} tt�� �| ��S )Nc S s6 g | ].}|� d �r|�d�rdtj�|�d f �qS )Ztest_z.pyzsimplejson.tests.%sr )� startswith�endswith�os�path�splitext)�.0�fr r r � <listcomp>( s z6all_tests_suite.<locals>.get_suite.<locals>.<listcomp>) r �listdirr �dirname�__file__r r Z TestLoaderZloadTestsFromNames)Zsuite_namesr r r � get_suite&