+
    CDjw                     j    ^ RI t ^ RIt^ RIHtHtHt ^ RIHtHtH	t	H
t
  ! R R4      t ! R R4      tR# )    N)fixisneginfisposinf)assert_assert_array_equalassert_equalassert_raisesc                      a  ] tR t^t o R tR t]P                  P                  R4      R 4       t	]P                  P                  R4      R 4       t
]P                  P                  R4      R 4       tRtV tR# )	TestUfunclikec                8   \         P                  ! \         P                  \         P                  ) \         P                  R RR.4      p\         P                  ! VP
                  \        4      p\         P                  ! . RO4      p\        V4      p\        WC4       \        W4      p\        WC4       \        W#4       VP                  \         P                  4      p\        \        4      ;_uu_ 4        \        V4       RRR4       R#   + '       g   i     R# ; i)              @N      )TFFFFF)nparrayinfnanzerosshapeboolr   r   astype
complex128r	   	TypeErrorselfaouttgtress   &    X/data/cameron/venvs/s3viz/lib/python3.14/site-packages/numpy/lib/tests/test_ufunclike.pytest_isposinfTestUfunclike.test_isposinf
       HHbffrvvgrvvsC>?hhqww%hh@AqkSqSSHHR]]#9%%QK &%%%   2DD	c                8   \         P                  ! \         P                  \         P                  ) \         P                  R RR.4      p\         P                  ! VP
                  \        4      p\         P                  ! . RO4      p\        V4      p\        WC4       \        W4      p\        WC4       \        W#4       VP                  \         P                  4      p\        \        4      ;_uu_ 4        \        V4       RRR4       R#   + '       g   i     R# ; i)r   r   Nr   )FTFFFF)r   r   r   r   r   r   r   r   r   r   r   r	   r   r   s   &    r    test_isneginfTestUfunclike.test_isneginf   r#   r$   z1ignore:numpy.fix is deprecated:DeprecationWarningc                X   \         P                  ! . RO. RO.4      p\         P                  ! VP                  \        4      p\         P                  ! . RO. RO.4      p\        V4      p\        WC4       \        W4      p\        WC4       \        W#4       \        \        R4      ^4       R# )      ?Q	@N)r)   皙?      ?g?)      皙      g)r)   r)   r)   r)   )r-   r-   r-   r-   )r   r   r   r   floatr   r   r   s   &    r    test_fixTestUfunclike.test_fix(   sx    HH*,DEFhhqww&hh(*>?@!fS!kSSSY"    c                  a  ! V3R  lR\         P                  4      o\         P                  ! RR.4      pS! VRR7      p\        V4      p\	        V\         P                  ! ^R.4      4       \        \        VS4      4       \        VP                  R4       VR	,          pRVn        \        V4      p\        \        VS4      4       \        VP                  R4       R# )
c                   B   <a  ] tR t^7t o RR ltRV3R lltR tRtV tR# )5TestUfunclike.test_fix_with_subclass.<locals>.MyArrayNc                `    \         P                  ! VR R7      P                  V 4      pW#n        V# )T)copy)r   r   viewmetadata)clsdatar:   r   s   &&& r    __new__=TestUfunclike.test_fix_with_subclass.<locals>.MyArray.__new__8   s'    hht$/44S9'
r3   c                   < \        VS4      '       g   VP                  S4      pVP                  f   V P                  Vn        V# N)
isinstancer9   r:   )r   objcontextreturn_scalarMyArrays   &&&&r    __array_wrap__DTestUfunclike.test_fix_with_subclass.<locals>.MyArray.__array_wrap__=   s8    !#w//((7+C<<'#'==CL
r3   c                *    \        VR R4      V n        V # )r:   N)getattrr:   )r   rB   s   &&r    __array_finalize__HTestUfunclike.test_fix_with_subclass.<locals>.MyArray.__array_finalize__D   s     'Z >r3   r:   r@   )NF)	__name__
__module____qualname____firstlineno__r=   rF   rJ   __static_attributes____classdictcell__)__classdict__rE   s   @r    rE   r6   7   s     
 r3   rE   r+   foorL   barNr.   )r   .)	r   ndarrayr   r   r   r   rA   r   r:   )r   r   mfm0df0drE   s   &     @r    test_fix_with_subclass$TestUfunclike.test_fix_with_subclass5   s    	bjj 	" HHc4[!A&F1bhh2w/0
1g&'QZZ' i#h
3()S\\5)r3   c                   \         P                  p\         P                  ! V4      p\         P                  p\	        W#4       \	        \        V4      \        V4      4       Rp\         P                  ! V4      p\         P                  ! R4      p\	        W#4       \	        \        V4      \        V4      4       \         P                  ! R4      p\         P                  ! WR7      p\        W$J 4       R# )g333333@r   r   Ng333333r   )
r   r   r   True_r   typer   float64r   r   )r   xactualexpectedr   s   &    r    test_scalarTestUfunclike.test_scalarV   s    FFQ88V&T&\4>2::d#V&T&\4>2hhsm#r3    N)rM   rN   rO   rP   r!   r&   pytestmarkfilterwarningsr1   r\   rf   rQ   rR   rS   s   @r    r   r      s      [[ ST
# U
# [[ ST* U*@ [[ ST Ur3   r   c                   6   a  ] tR t^it o RtR tR tR tRtV t	R# )TestFixDeprecationz/Test that numpy.fix emits a DeprecationWarning.c                    \         P                  ! . RO4      p\        P                  ! \        RR7      ;_uu_ 4        \        V4       RRR4       R#   + '       g   i     R# ; i)r,   numpy.fix is deprecatedmatchN)r,   皙@r/   g)r   r   ri   warnsDeprecationWarningr   )r   r   s   & r    "test_fix_emits_deprecation_warning5TestFixDeprecation.test_fix_emits_deprecation_warningl   s;    HH+,\\,4MNNF ONNNs   AA$	c                    \         P                  ! \        R R7      ;_uu_ 4        \        R4       RRR4       R#   + '       g   i     R# ; i)rp   rq   r*   N)ri   rt   ru   r   )r   s   &r    )test_fix_scalar_emits_deprecation_warning<TestFixDeprecation.test_fix_scalar_emits_deprecation_warningq   s,    \\,4MNNI ONNNs	   ;A	c                   \         P                  ! R R.4      p\         P                  ! VP                  4      p\        P
                  ! \        RR7      ;_uu_ 4        \        WR7       RRR4       R#   + '       g   i     R# ; i)r,   rs   rp   rq   r_   N)r   r   r   r   ri   rt   ru   r   )r   r   r   s   &  r    +test_fix_with_out_emits_deprecation_warning>TestFixDeprecation.test_fix_with_out_emits_deprecation_warningu   sP    HHc3Z hhqww\\,4MNNO ONNNs   A44B	rh   N)
rM   rN   rO   rP   __doc__rv   ry   r|   rQ   rR   rl   s   @r    rn   rn   i   s     9
 r3   rn   )ri   numpyr   r   r   r   numpy.testingr   r   r   r	   r   rn   rh   r3   r    <module>r      s.      ) ) R R^ ^B r3   