a
    ¦ˆc´  ã                
   @   sx   d Z zddlmZ W n ey*   dZY n0 g d¢Zg d¢ddgdd	gd
d	gdd	gg d¢dd	gdgdgdœ	Zdd„ ZdS )z| Reusable MVC-based components for Traits-based applications.
    Part of the TraitsUI project of the Enthought Tool Suite.
é    )Úfull_versionz	not-built)z/importlib-metadata>=3.6.0; python_version<"3.8"z0importlib-resources>=1.1.0; python_version<"3.9"ztraits>=6.2)zenthought-sphinx-themeZsphinxzsphinx-copybuttonzwxpython>=4Únumpyz
pyqt>=4.10ÚpygmentsÚpyqt5Úpyqt6)Úpyside2Z	shiboken2r   Úpyside6ÚpillowÚ	packaging)	ZdocsZwxZpyqtr   r   r   r   r	   Útestc                 C   s¦   ddl m} ddlm} ddlm} ddlm} ddlm	} |t
ƒ}| j||d�}	g }
| dd	¡}|d	urt|
 |¡ |ƒ }|	D ]"}|
D ]}|||ƒ}q†| |¡ q~|S )
aD   Custom test loading function that enables test filtering using regex
    exclusion pattern.

    Parameters
    ----------
    loader : unittest.TestLoader
        The instance of test loader
    standard_tests : unittest.TestSuite
        Tests that would be loaded by default from this module (no tests)
    pattern : str
        An inclusion pattern used to match test files (test*.py default)

    Returns
    -------
    filtered_package_tests : unittest.TestSuite
        TestSuite representing all package tests that did not match specified
        exclusion pattern.
    r   )Úenviron)Údirname)Úfilter_tests)Ú	TestSuite)Útoolkit_object)Ú	start_dirÚpatternZEXCLUDE_TESTSN)Úosr   Úos.pathr   Zpyface.util.testingr   Zunittestr   Zpyface.toolkitr   Ú__file__ZdiscoverÚgetÚappendZaddTest)ÚloaderZstandard_testsr   r   r   r   r   r   Zthis_dirZpackage_testsZexclusion_patternsZadditional_excludeZfiltered_package_testsZ
test_suiteZexclusion_pattern© r   úR/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/pyface/__init__.pyÚ
load_tests(   s"    
r   N)Ú__doc__Zpyface._versionr   Ú__version__ÚImportErrorÚ__requires__Z__extras_require__r   r   r   r   r   Ú<module>   s    
÷