o
    JAfh                     @   sh   d Z ddlZddlZddlZddlmZ ddlmZ ej	e
p"ejZdd Zedkr2ee  dS dS )a  Test suite for distutils.

This test suite consists of a collection of test modules in the
distutils.tests package.  Each test module has a name starting with
'test' and contains a function test_suite().  The function is expected
to return an initialized unittest.TestSuite instance.

Tests for the command classes in the distutils.command package are
included in distutils.tests as well, instead of using a separate
distutils.command.tests package, since command identification is done
by import rather than matching pre-defined names.

    N)run_unittest)save_restore_warnings_filtersc               	   C   s   t  } ttD ]7}|dr@|dr@d|d d  }t  t| W d    n1 s/w   Y  t	j
| }| |  q	| S )Ntestz.pyzdistutils.tests.)unittestZ	TestSuiteoslistdirhere
startswithendswithr   
__import__sysmodulesZaddTest
test_suite)Zsuitefnmodnamemodule r   //usr/lib/python3.10/distutils/tests/__init__.pyr      s   

r   __main__)__doc__r   r   r   Ztest.supportr   Ztest.support.warnings_helperr   pathdirname__file__curdirr	   r   __name__r   r   r   r   <module>   s    