/usr/lib/python3/dist-packages/setuptools/command/__pycache__
Edit: /usr/lib/python3/dist-packages/setuptools/command/__pycache__/test.cpython-310.pyc (8101B)
o
_a @ s d dl Z d dlZd dlZd dlZd dlZd dlZd dlmZmZ d dl m
Z
d dlmZ d dlm
Z
mZmZmZmZmZmZmZ d dlmZ d dlmZ G dd d eZG d
d dZG dd
d
eZdS ) N)DistutilsErrorDistutilsOptionError)log)
TestLoader)resource_listdirresource_existsnormalize_pathworking_setevaluate_markeradd_activation_listenerrequire
EntryPoint)Command)unique_everseenc @ e Zd Zdd ZdddZdS )ScanningLoaderc C s t | t | _d S N)r __init__set_visitedself r 9/usr/lib/python3/dist-packages/setuptools/command/test.pyr s
zScanningLoader.__init__Nc C s || j v rdS | j | g }|t| | t|dr$|| t|dr`t|jdD ]0}| drF|dkrF|jd |dd }nt
|j|d rV|jd | }nq/|| | q/t|d
krk|
|S |d S )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 loadTestsFromNamelen
suiteClass)r modulepatterntestsfile submoduler r r r" s$
z"ScanningLoader.loadTestsFromModuler )r$
__module____qualname__r r" r r r r r s r c @ r )NonDataPropertyc C s
|| _ d S r fget)r r2 r r r r B s
zNonDataProperty.__init__Nc C s |d u r| S | |S r r1 )r objobjtyper r r __get__E s
zNonDataProperty.__get__r )r$ r. r/ r r5 r r r r r0 A s r0 c @ s e Zd ZdZdZg dZdd Zdd Zedd Z d
d Z
dd
Zej
g fddZeej
dd Zedd Zdd Zdd Zedd Zedd ZdS )testz.Command to run unit tests after in-place buildz0run unit tests after in-place build (deprecated)))ztest-module=mz$Run 'test_suite' in specified module)ztest-suite=sz9Run single test, case or suite (e.g. 'module.test_suite'))ztest-runner=rzTest runner to usec C s d | _ d | _d | _d | _d S r )
test_suitetest_moduletest_loadertest_runnerr r r r initialize_optionsZ s
ztest.initialize_optionsc C s | j r| jrd}t|| j d u r"| jd u r| jj | _ n| jd | _ | jd u r/t| jdd | _| jd u r7d| _| jd u rFt| jdd | _d S d S )Nz1You may specify a module or a suite, but not bothz.test_suiter<