
    hh                     .    d dl Z d dlZd Z G d d      Zy)    Nc                  <    dd l } t        d| j                          y )Nr   zskimage version )skimageprint__version__)r   s    T/var/www/html/dev/engine/venv/lib/python3.12/site-packages/skimage/_shared/tester.py_show_skimage_infor      s    	W001
23    c                   ,    e Zd ZdZd Z	 	 	 	 	 	 	 ddZy)PytestTesteraX  
    Pytest test runner.

    This class is made available in ``skimage._shared.testing``, and a test
    function is typically added to a package's __init__.py like so::

      from skimage._shared.testing import PytestTester
      test = PytestTester(__name__)
      del PytestTester

    Calling this test function finds and runs all tests associated with the
    module and all its sub-modules.

    Attributes
    ----------
    module_name : str
        Full path to the package to test.

    Parameters
    ----------
    module_name : module name
        The name of the module to test.

    c                     || _         y )N)module_name)selfr   s     r   __init__zPytestTester.__init__%   s
    &r	   Nc                 R   ddl }t        j                  | j                     }	t        j
                  j                  |	j                  d         }
dg}|dgz  }|g dz  }|rt        d      |r|t        |      z  }|dkD  r|dd	|dz
  z  z   gz  }|r	|d
|
z   gz  }|dk(  r|ddgz  }n|dk7  r|d|gz  }|dk\  r	|d| gz  }|| j                  g}|dgt        |      z   z  }t                	 |j                  |      }|dk(  S # t        $ r}|j                  }Y d}~|dk(  S d}~ww xY w)ar  
        Run tests for module using pytest.

        Parameters
        ----------
        label : {'fast', 'full'}, optional
            Identifies the tests to run. When set to 'fast', tests decorated
            with `pytest.mark.slow` are skipped, when 'full', the slow marker
            is ignored.
        verbose : int, optional
            Verbosity value for test outputs, in the range 1-3. Default is 1.
        extra_argv : list, optional
            List with any extra arguments to pass to pytests.
        doctests : bool, optional
            .. note:: Not supported
        coverage : bool, optional
            If True, report coverage of scikit-image code. Default is False.
            Requires installation of (pip) pytest-cov.
        durations : int, optional
            If < 0, do nothing, If 0, report time of all tests, if > 0,
            report the time of the slowest `timer` tests. Default is -1.
        tests : test or list of tests
            Tests to be executed with pytest '--pyargs'

        Returns
        -------
        result : bool
            Return True on success, false otherwise.
        r   Nz-lz-q)z!-W ignore:Not importing directoryz"-W ignore:numpy.dtype size changedz"-W ignore:numpy.ufunc size changedzDoctests not supported   -vz--cov=fastz-mznot slowfullz--durations=z--pyargs)pytestsysmodulesr   ospathabspath__path__
ValueErrorlistr   main
SystemExitcode)r   labelverbose
extra_argvdoctestscoverage	durationstestsr   modulemodule_pathpytest_argsr!   excs                 r   __call__zPytestTester.__call__(   ss   N 	T--.ggoofooa&89 f 	v 	 
 	
 5664
++KQ;C#1"5566KH{233KF?D*--Kf_D%=(K>l9+677K=%%&E
|d5k11 		;;{+D qy  	88Dqy	s   -D 	D&D!!D&)r   r   NFFN)__name__
__module____qualname____doc__r   r-    r	   r   r   r      s)    2'
 [r	   r   )r   r   r   r   r3   r	   r   <module>r4      s    	 
4x xr	   