
    Ph	                     @   d Z ddlZddlZddlmZmZ  G d d      Z G d deej                        Z	 G d d	e	      Z
 G d
 de
e	      Z G d dej                  e      Z G d de      Z G d d      Z G d dej                  e      Z G d d      Z G d d      Zy)z! Test printing of scalar types.

    N)assert_assert_raisesc                       e Zd Zy)AN__name__
__module____qualname__     nC:\Users\daisl\Desktop\realtime-object-detection\venv\Lib\site-packages\numpy/core/tests/test_scalarinherit.pyr   r   
       r   r   c                       e Zd Zy)BNr   r   r   r   r   r      r   r   r   c                       e Zd Zy)CNr   r   r   r   r   r      r   r   r   c                       e Zd Zy)DNr   r   r   r   r   r      r   r   r   c                       e Zd Zy)B0Nr   r   r   r   r   r      r   r   r   c                       e Zd Zy)C0Nr   r   r   r   r   r      r   r   r   c                       e Zd Zd Zy)HasNewc                     | ||fS )Nr   )clsargskwargss      r   __new__zHasNew.__new__   s    D&  r   N)r   r	   r
   r   r   r   r   r   r      s    !r   r   c                       e Zd Zy)B1Nr   r   r   r   r!   r!      r   r   r!   c                       e Zd Zd Zd Zd Zy)TestInheritc                     t        d      }t        t        |      dk(         t        d      }t        t        |      dk(         t	        d      }t        t        |      dk(         y )N      ?1.0       @2.0g      @z3.0)r   r   strr   r   )selfxyzs       r   	test_initzTestInherit.test_init"   sM    cFA% cFA% cFA% r   c                     t        d      }t        t        |      dk(         t        d      }t        t        |      dk(         y )Nr%   r&   r'   r(   )r   r   r)   r   )r*   r+   r,   s      r   
test_init2zTestInherit.test_init2*   s4    sGA% sGA% r   c                     t        d      }t        t        |      dk(         t        j                  t
              5  t        dd       d d d        y # 1 sw Y   y xY w)Nr%   r&   r'   )r!   r   r)   pytestraises	TypeError)r*   r+   s     r   test_gh_15395zTestInherit.test_gh_153950   s>    sGA%  ]]9%sCL &%%s   AAN)r   r	   r
   r.   r0   r5   r   r   r   r#   r#   !   s    !!r   r#   c                       e Zd Zd Zd Zy)TestCharacterc                    t        j                  d      }t        j                  d      }d}d}t        |j	                  |      t
        u        t        |j	                  |      t
        u        t        |j	                  |      t
        u        t        |j	                  |      t
        u        t        |j	                  |      t
        u        t        |j	                  |      t
        u        t        |j	                  |      t
        u        t        |j	                  |      t
        u        t        ||z   dk(         t        ||z   dk(          G d dt        t         j                        }t        t              5  | |d      z   }d d d         G d d	t        t         j                        }| |d
      z   }t        |      t        |      u sJ |dk(  sJ y # 1 sw Y   RxY w)Nabcs   defdefs   defabcdefabcc                       e Zd Zy)+TestCharacter.test_char_radd.<locals>.MyStrNr   r   r   r   MyStrr=   L       r   r>   c                       e Zd Zy)-TestCharacter.test_char_radd.<locals>.MyBytesNr   r   r   r   MyBytesrA   T   r?   r   rB   s   abc)npbytes_str_r   __radd__NotImplementedr)   genericr   r4   bytestype)r*   np_snp_usur>   retrB   s           r   test_char_raddzTestCharacter.test_char_radd;   sw   yywwu~d#~56d#~56a N23a N23d#~56d#~56a N23a N23DI%&DH$%	C 	 9%eEl"C &	eRZZ 	 '&/!CyDG#$#i &%s   >GG$c                     t        j                  d      }t        j                  d      }d}d}t        |dz  |k(         t        |dz  |k(         y )Nr9   s   abcabcabcabcabcabcabcabcabcabc   )rC   rD   rE   r   )r*   rK   rL   res_sres_us        r   test_char_repeatzTestCharacter.test_char_repeat\   sI    yywwu~qE!"qE!"r   N)r   r	   r
   rP   rV   r   r   r   r7   r7   :   s     B#r   r7   )__doc__r2   numpyrC   numpy.testingr   r   r   float64r   r   r   r   r   r   r!   r#   r7   r   r   r   <module>r[      s      0	 		2:: 		 		1 		Q 		 	! !	V 	 2(# (#r   