Viewing File: /usr/lib/python3.6/site-packages/setuptools/command/__pycache__/test.cpython-36.opt-1.pyc
3
Xoh# @ 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
eZG dd deZG d
d deZ dS ) N)DistutilsErrorDistutilsOptionError)log)
TestLoader)six)mapfilter) resource_listdirresource_existsnormalize_pathworking_set_namespace_packagesevaluate_markeradd_activation_listenerrequire
EntryPoint)Commandc @ s e Zd Zdd ZdddZdS )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|drH|j|j t|drxpt|jdD ]`}|j dr|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.
Nadditional_tests__path__ z.pyz__init__.py. z/__init__.py r )r addappendr loadTestsFromModulehasattrr r __name__endswithr
ZloadTestsFromNamelenZ
suiteClass)r modulepatternZtestsfileZ 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 ZdddZdS )NonDataPropertyc C s
|| _ d S )N)fget)r r. r r r r >