o
    b%                     @   s   d dl Z d dlZd dlZd dlZd dlZd dlZdd Zdd Ze j	dd Z
ejejgZdd	 eD Zd
d	 eD Zejjejjdeeddd ZdS )    Nc                 C   s
   |  dS )Nz.py)endswith)filename r   a/var/www/secure340b-portal/env/lib/python3.10/site-packages/pylint/test/acceptance/test_stdlib.py	is_module   s   
r   c                 C   s   t jt j|| dS )Nz__init__.py)ospathexistsjoin)r   locationr   r   r   
is_package   s   r   c                 c   s(    | t _z
d V  W t jt _d S t jt _w )N)sysstdout
__stdout__)outr   r   r   _patch_stdout   s
   r   c                 C   s6   g | ]}t |D ]}t|st||r	||fq	qS r   )r   listdirr   r   ).0r   moduler   r   r   
<listcomp>    s    r   c                 C   s   g | ]}|d  qS )   r   )r   mr   r   r   r   &   s    )test_module_locationtest_module_name)idsc                 C   s   t |  tt 1 ztj|ddg W n  ty7 } z|j	dks&J W Y d }~W d    d S d }~ww J d1 s?w   Y  d S )Nz--enable=allz--ignore=test    Fzshouldn't get there)
r   chdirr   ioStringIOpylintZlintZRun
SystemExitcode)r   r   exr   r   r   test_libmodule)   s   

r#   )
contextlibr   r   r   ZpytestZpylint.lintr   r   r   contextmanagerr   r   dirname__file__ZLIB_DIRSZMODULES_TO_CHECKZMODULES_NAMESmarkZ
acceptanceZparametrizer#   r   r   r   r   <module>   s(   
