
    !Цi                     8    S r SSKrSSKrS/rS r " S S5      rg)a  
Pytest test running.

This module implements the ``test()`` function for NumPy modules. The usual
boiler plate for doing that is to put the following in the module
``__init__.py`` file::

    from pywt._pytesttester import PytestTester
    test = PytestTester(__name__).test
    del PytestTester


Warnings filtering and other runtime settings should be dealt with in the
``pytest.ini`` file in the pywt repo root. The behavior of the test depends on
whether or not that file is found as follows:

* ``pytest.ini`` is present (develop mode)
    All warnings except those explicily filtered out are raised as error.
* ``pytest.ini`` is absent (release mode)
    DeprecationWarnings and PendingDeprecationWarnings are ignored, other
    warnings are passed through.

In practice, tests run from the PyWavelets repo are run in develop mode. That
includes the standard ``python runtests.py`` invocation.

    NPytestTesterc                      SS K n SSKJn  [        SU R                   35        U(       a  [        S5        g [        S5        g )Nr   )_have_c99_complexzPyWavelets version z"Compiled with C99 complex support.z%Compiled without C99 complex support.)pywtpywt._c99_configr   print__version__)r   r   s     Q/var/www/html/ai-image-ml/venv/lib/python3.13/site-packages/pywt/_pytesttester.py_show_pywt_infor   "   s4    2	 0 01
232356    c                   ,    \ rS rSrSrS r  SS jrSrg)r   ,   a  
Pytest test runner.

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

  from pywt.testing import PytestTester
  test = PytestTester(__name__).test
  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                     Xl         g )Nmodule_name)selfr   s     r
   __init__PytestTester.__init__E   s    &r   Nc                 |   SSK n[        R                  U R                     n	[        R
                  R                  U	R                  S   5      n
S/nUS/-  nU/ SQ-  nU(       a  [        S5      eU(       a  U[        U5      -  nUS:  a  USS	US-
  -  -   /-  nU(       a	  US
U
-   /-  nUS:X  a  USS/-  nOUS:w  a  USU/-  nUS:  a	  USU 3/-  nUc  U R                  /nUS/[        U5      -   -  n[        5          UR                  U5      nUS:H  $ ! [         a  nUR                  n SnAUS:H  $ SnAff = f)a/  
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 NumPy 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.

Examples
--------
>>> result = np.lib.test() #doctest: +SKIP
...
1023 passed, 2 skipped, 6 deselected, 1 xfailed in 10.39 seconds
>>> result
True

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__PytestTester.__call__H   ss   P 	T--.ggoofooa&89 f 	v 	 4 	4
 5664
++KQ;C#w{"3344K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;!D66D;r   )r   r   NFFN)__name__
__module____qualname____firstlineno____doc__r   r2   __static_attributes__ r   r
   r   r   ,   s    0' <@EI[r   )r9   r   r   __all__r   r   r;   r   r
   <module>r=      s+   6 
 

7w wr   