+
    ei	  c                   s    R t ^ RIt^ RIt^ RIHt ^ RIt^ RIt ! R R]P                  4      t ! R R]P                  4      t	]P                  P                  R 4       tR# )z
Tests which scan for certain occurrences in the code, they may not find
all of these occurrences but should catch almost all.
N)Pathc                   s2   a  ] tR t^t o R tR tR tRtV tR# )	ParseCallc                s    . V n         R # Nls)selfs   &@/usr/lib64/python3.14/site-packages/numpy/tests/test_warnings.py__init__ZParseCall.__init__   s	        c                s    \         P                  P                  W4       V P                  P	                  VP
                  4       R # r   )astNodeVisitorgeneric_visitr   appendZattrr   node   &&r   visit_AttributeZParseCall.visit_Attribute   s(    %%d1tyy!r   c                sP    V P                   P                  VP                  4       R # r   )r   r   Zidr   r   r   
visit_NameZParseCall.visit_Name   s    twwr   r   N)	__name__
__module____qualname____firstlineno__r   r   r   __static_attributes____classdictcell__)__classdict__s   @r   r   r      s     "   r   r   c                   s8   a a ] tR t^t oV 3R ltR tRtVtV ;t# )	FindFuncsc                s0   < \         SV `  4        Wn        R # r   )Zsuperr   _FindFuncs__filename)r   Zfilename	__class__s   &&r   r   ZFindFuncs.__init__   s    "r   c                s    \        4       pVP                  VP                  4       \        P                  P                  W4       VP                  R,          R8X  g   VP                  R,          R8X  dH   VP                  ^ ,          P                  R8X  d&   \        RV P                   RVP                   24      hVP                  R,          R8X  d   \        VP                  4      ^8X  g   VP                  R,          R8X  d   RV P                  8X  d   R	# \        VP                  4      ^8X  d   R	# VP                   Uu0 uF  q3P                  kK  	  ppR
V9   d   R	# \        RV P                   RVP                   24      hR	# R	# u upi )i   ZsimplefilterZfilterwarningsZignorez9warnings should have an appropriate stacklevel; found in z	 on line ZwarnZwarningsztesting/tests/test_warnings.pyNZ
stacklevelii)r   visitZfuncr	   r
   r   r   argsZvalueZAssertionErrorr   ZlinenoZlenZkeywordsZarg)r   r   ZpZkwr   s   &&   r   
visit_CallZFindFuncs.visit_Call   sE   K			%%d1448~%b5E)Eyy|!!X-$  $0	$++HI I 448vADD	Q!$$r(j"8/4??B 499~"%)]]3]rFF]D3t#  OO,Idkk]DE E #9  4s   F)Z
__filename)	r   r   r   r   r   r   r   r   Z__classcell__)r   r   s   @@r   r   r      s     #E Er   r   c                  s   \        \        P                  4      P                  p V P	                  R 4       F  pV R,          VP
                  9   d   K  WR,          8X  d   K,  WR,          R,          8X  d   KB  WR,          8X  d   KQ  \        P                  ! \        V4      4      ;_uu_ 4       p\        P                  ! VP                  4       4      p\        V4      P                  V4       RRR4       K  	  R#   + '       g   i     K  ; i)z*.pyZtestingz__init__.pyZrandomzconftest.pyN)r    numpyZ__file__ZparentZrglobZparentstokenizeZopenZstrr	   ZparseZreadr   r   )ZbaseZpathZfileZtrees       r   test_warning_callsr!   <   s     &&D

6")t||+-''(?]22-'' ]]3t9%%99TYY[)DdO!!$' &% # &%%s   -?C::D)Z__doc__r	   r    Zpathlibr    Zpytestr   r
   r   r   ZmarkZslowr!   ) r   r   <module>r"      s\        	  	 E ED ( (r   