
    
9j                        S SK Jr  S SKrS SKr S SKrS SKrSrS r
S r\
" 5       (       a
   " S S5      rSS.S	 jrg! \ a  r	SrSr\	r Sr	C	N5Sr	C	ff = f)
    )annotationsNc                 @    [         S L =(       a    [        [        S5      $ )Nfixture)_errorhasattrpytest     S/home/wildlama/miniconda3/lib/python3.13/site-packages/cupy/testing/_pytest_impl.pyis_availabler      s    T>8gfi88r
   c                    [        5       (       d7  [        SR                  U [        [        5      R
                  [        5      5      eg )Nz2cupy.testing: {} is not available.

Reason: {}: {})r   RuntimeErrorformattyper   __name__)features    r   check_availabler      s<    >>  &$v,"7"7@B 	B r
   c                  T   ^  \ rS rSrU 4S jr\R                  " SS9S 5       rSrU =r	$ )_TestingParameterizeMixin   c                T   > SR                  [        TU ]	  5       U R                  5      $ )Nz<{}  parameter: {}>)r   super__repr____dict__)self	__class__s    r   r   "_TestingParameterizeMixin.__repr__!   s(    (// " r
   T)autousec                j    U R                   (       a   S5       eU R                   R                  U5        g )Nz9There should not be another hack with instance attribute.)r   update)r   _cupy_testing_params     r   _cupy_testing_parameterize4_TestingParameterizeMixin._cupy_testing_parameterize'   s.    }} LKL$MM  !45r
   r	   )
r   
__module____qualname____firstlineno__r   r   r   r"   __static_attributes____classcell__)r   s   @r   r   r      s%    	 
	%	6 
&	6r
   r   T)_idsc                  ^ [        S5        U (       a%  [        R                  R                  R                  nOS n[        T5       VVs/ s H   u  p4[        R                  " XB" SX45      S9PM"     snnmU4S jnU$ s  snnf )Nparameterizec                    [        U5      $ )N)str)_iparams      r   
param_name parameterize.<locals>.param_name3   s    q6Mr
    )idc                4  > [        U [        R                  5      (       a   e[        U [        5      (       a  [	        S5      eU R
                  n[        U R                  [        U 40 5      n Xl        [        R                  R                  ST5      " U 5      n U $ )Nz$do not `@testing.parameterize` twicer!   )
issubclassunittestTestCaser   r   r$   r   r   r   markparametrize)clsmodule_nameparamss     r   fparameterize.<locals>.f?   s}    c8#4#45555c455EFFnn3<<";S!A2F$kk%%&;VDSI
r
   )r   cupytesting_parameterized_make_class_name	enumerater   r0   )r)   r=   r1   r/   r0   r>   s    `    r   r+   r+   .   sq    N#\\00AA
	 "&))HA 	Uz"a78)F
 Hs   
'A=)
__future__r   r7   cupy.testing._parameterizedr@   r   _pytestr   ImportErrorer   r   r   r+   r	   r
   r   <module>rJ      sh    "  "F9B >>6 6  $ G  FGFs   
> AAA