
    daf                        d dl Z d dlZd dlZd dlZd dlmZ d dlmZ  ej                  ddg      Z	 ej                  ddg      Z
ej                  xe	_        e	j                  _         G d d	ej                        Z ej                  e	d
       G d dej                               Z G d de      Z G d de      Zd Zy)    N)support)import_helperjson_json)fresh)blockedc                   |    e Zd ZeZ eej                        Z eej                        Z eej                        Zy)PyTestN)	__name__
__module____qualname__pyjsonr   staticmethodloadsdumpsJSONDecodeError     2/root/Python-3.12.4/Lib/test/test_json/__init__.pyr
   r
      s3    D&E&E"6#9#9:Or   r
   zrequires _jsonc                       e Zd Ze9eZ eej                        Z eej                        Z eej                        Zyy)CTestN)	r   r   r   cjsonr   r   r   r   r   r   r   r   r   r      s>    U[[)U[[)&u'<'<=	 r   r   c                       e Zd Zd Zy)
TestPyTestc                 `   | j                  | j                  j                  j                  j                  d       | j                  | j                  j
                  j                  j                  d       | j                  | j                  j                  j                  j                  d       y )Nzjson.scannerzjson.decoderzjson.encoder)	assertEqualr   scannermake_scannerr   decoder
scanstringencoderencode_basestring_asciiselfs    r   test_pyjsonzTestPyTest.test_pyjson!   s}    **77BB'	)**55@@'	)**BBMM'	)r   N)r   r   r   r%   r   r   r   r   r       s    )r   r   c                       e Zd Zd Zy)	TestCTestc                    | j                  | j                  j                  j                  j                  d       | j                  | j                  j
                  j                  j                  d       | j                  | j                  j                  j                  j                  d       | j                  | j                  j                  j                  j                  d       y )Nr   )
r   r   r   r   r   r   r    r!   c_make_encoderr"   r#   s    r   
test_cjsonzTestCTest.test_cjson*   s    **77BBGL**55@@'J**99DDgN**BBMM 	"r   N)r   r   r   r*   r   r   r   r'   r'   )   s    "r   r'   c                    t        j                         }t        t        j                  t        j                  fD ]&  }|j                  t        j                  |             ( |j                  t        d             |j                  t        d             t        j                  j                  t              }t        j                  || ||      S )Nr%   r*   )unittest	TestSuiter   r!   r   addTestdoctestDocTestSuiter   r'   ospathdirname__file__r   load_package_tests)loader_patternsuitemodpkg_dirs         r   
load_testsr<   2   s     EdllDLL1 1g**3/01	MM*]+,	MM)L)*ggooh'G%%gvugFFr   )r1   r   r/   r,   testr   test.supportr   import_fresh_moduler   r   r   r   TestCaser
   
skipUnlessr   r   r'   r<   r   r   r   <module>rB      s    	     & 	*))&	B	*	*	*6G9	E8<8L8L L 5;X ; U,->H > .>) )" "Gr   