AlkantarClanX12
Current Path : /proc/self/root/lib/python3.6/site-packages/setuptools/command/__pycache__/ |
Current File : //proc/self/root/lib/python3.6/site-packages/setuptools/command/__pycache__/test.cpython-36.pyc |
3 9��f�# � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZd dlmZmZ d dl m Z d dlmZ d dlm Z d dlmZmZ d dlmZmZmZmZmZmZmZmZmZ d dlmZ G d d � d e�ZG dd� de�ZG d d� de�Z dS )� N)�DistutilsError�DistutilsOptionError)�log)� TestLoader)�six)�map�filter) �resource_listdir�resource_exists�normalize_path�working_set�_namespace_packages�evaluate_marker�add_activation_listener�require� EntryPoint)�Commandc @ s e Zd Zdd� Zddd�ZdS )�ScanningLoaderc C s t j| � t� | _d S )N)r �__init__�set�_visited)�self� r �/usr/lib/python3.6/test.pyr s zScanningLoader.__init__Nc C s� || j krdS | j j|� g }|jtj| |�� t|d�rH|j|j� � t|d�r�xpt|jd�D ]`}|j d�r�|dkr�|jd |dd� }n"t |j|d �r`|jd | }nq`|j| j|�� q`W t|�d kr�| j |�S |d S dS ) a Return a suite of all tests cases contained in the given module If the module is a package, load tests from all the modules in it. If the module has an ``additional_tests`` function, call it and add the return value to the tests. N�additional_tests�__path__� z.pyz__init__.py�.� z/__init__.py� r ���)r �add�appendr �loadTestsFromModule�hasattrr r �__name__�endswithr ZloadTestsFromName�lenZ suiteClass)r �module�patternZtests�fileZ submoduler r r r# s$ z"ScanningLoader.loadTestsFromModule)N)r% � __module__�__qualname__r r# r r r r r s r c @ s e Zd Zdd� Zddd�ZdS )�NonDataPropertyc C s || _ d S )N)�fget)r r. r r r r >