
    <e\D                        d Z ddlZddlZddlZddlmZmZmZmZm	Z	m
Z
 ddlT ddlmZ ddlmZ ddlmZmZ ddlmZmZ dd	lmZ dd
lmZmZmZ ddlmZ ddlmZm Z  ddl!m"Z"m#Z# 	 ddl$Z$n# e%$ r dZ$Y nw xY wddl&m'Z' ddl(m)Z) ddl*m+Z+ ddl,m-Z- ddl.m/Z/ 	 ddl0m1Z1 ddl2m3Z3 ddl4m5Z6 n# e%$ r	 dZ1dZ3dZ6Y nw xY w	 ddl7m8Z8 n# e%$ r dZ8Y nw xY wddl9m:Z: ddl;m<Z<m=Z= ddl>m?Z?m@Z@mAZA ddlBmCZCmDZD ddlEmFZFmGZG ddlHmIZI ddlJmKZKm5Z5 ddlLmMZMmNZNmOZO ddlPZPddlPmQZQ dd lPmRZR  eRd!          ZS eRd"          ZT eRd#          ZUg eVeW         R d         g eVeS         R d         g eVeWeXf         R d         g eVeWd$f         R d         g eVeSd$f         R d         eVg eVeWd$f         R          eVg eVeSd$f         R          eVeXgeVeWd$f         R          eVg eVeWd$f         eXR          eVeYgeVeWd$f         eXR          eVg eVg eVeWd$f         R          R          eQeVeW                  eQeVeS                  eQeVeWeXf                  eQeVeWd$f                  eQeVeSd$f                  eVeQeVeWd$f                           eVeQeVeSd$f                           eVeXeQeVeWd$f                  f         eVeQeVeWd$f                  eXf         eVeYeQeVeWd$f                  eXf         eVeQeVeQeVeWd$f                                             eVeQeVg eVeWd$f         R                            eVg eVeQeVeWd$f                           R          gZZ G d% d&ej[                  Z\ G d' d(ej[                  Z]e^d)k    r ej_                     dS dS )*z%Tests for C-implemented GenericAlias.    N)defaultdictdequeOrderedDictCounterUserDictUserList)*)Future)	_WorkItem)AbstractContextManagerAbstractAsyncContextManager)
ContextVarToken)Field)partialpartialmethodcached_property)TopologicalSorter)LoggerAdapterStreamHandler)Mailbox_PartialFile)SequenceMatcher)dircmp)	FileInput)chain)Morsel)
ValueProxy)ApplyResult)SimpleQueue)ShareableList)DirEntry)PatternMatch)GenericAliasMappingProxyTypeAsyncGeneratorType)TemporaryDirectorySpooledTemporaryFile)SplitResultParseResult)_AssertRaisesContext)Queuer    )WeakSetReferenceTyperef)Unpack)TypeVarTKV.c                   V   e Zd ZdZg eeeeee	e
eeeeeeeeeeeeeeeeeeeeee e!e"e#e$e%e&e'e(e)e*e+e,e-e.e/e0e1e2e3e4e5e6e7e8e9e:e;e<e=e>e?e@eAeBeCeDeEeFeGeHeIZJeK!eJL                    eKjM        eKjN        f           eOeJL                    eOePeQf           d ZRd ZSd ZTd ZUd ZVd ZWd	 ZXd
 ZYd ZZd Z[d Z\d Z]d Z^d Z_d Z`d Zad Zbd Zcd Zdd Zed Zfd Zgd Zhd Zid Zjd Zkd Zld Zmd ZndS ) BaseTestzTest basics.Nc                 V   | j         D ]}||j        }|                     d|           5  |t                   }|                     |j        |           |                     |j        t          f           |                     |j        d           d d d            n# 1 swxY w Y   d S )NTesting  )	generic_types__name__subTestintassertIs
__origin__assertEqual__args____parameters__selfttnamealiass       -/usr/lib/python3.11/test/test_genericalias.pytest_subscriptablezBaseTest.test_subscriptable   s    # 	; 	;AyJE00011 ; ;#e.222  #888  !5r:::	; ; ; ; ; ; ; ; ; ; ; ; ; ; ;		; 	;s   A%BB!	$B!	c                 :   t           t          t          t          t          fD ]y}|j        }|                     d|           5  |                     t          |          5  |t                     d d d            n# 1 swxY w Y   d d d            n# 1 swxY w Y   zd S Nr9   )	r>   strfloatSizedHashabler<   r=   assertRaisesRegex	TypeError)rE   rF   rG   s      rI   test_unsubscriptablezBaseTest.test_unsubscriptable   s   c5%1 	 	AJE00011  ++Iu==  cFF                            	 	s6   BA8,B8A<<B?A< BB	B	c           
      &   t           t          t          t          t          t
          t          fD ]b}|j        }|                     d|           5  |t                   }| 
                     |             |                       |t          u rn| 
                     |t          ddg                    t          dd                     | 
                     |dd          t          dd                     n~|t
          u r@d } ||          }t          |          }| 
                    |d         |d                    n5| 
                     |t          d	                     |d	                     d d d            n# 1 swxY w Y   dd S )
Nr9   )a   )b   rV   rX   )rU   rW   c                      dS )Nvaluer:   r:       rI   defaultz*BaseTest.test_instantiate.<locals>.default   s    &wr[   test)rV   rX      )tuplelistdictset	frozensetr   r   r<   r=   r>   rA   iter)rE   rF   rG   rH   r\   rU   ds          rI   test_instantiatezBaseTest.test_instantiate   s   dCKF 	K 	KAJE00011 K K#  !!##...99$$UU480D+E+E%F%FqTUWWW$$UUQ!___dQ!nnnEEEE+%%' ' 'gA#G,,A$$QvY&	::::$$UU4	??%;%;QQy\\JJJK K K K K K K K K K K K K K K	K 	Ks   D)FF	F	c                 B   t           t                   } |            }|                    |d           |                     |dg           |                    |d          }|                     |d           |                     |                    |          d           d S )Nfoor   rV   )r`   r>   appendrA   __getitem____len__)rE   rF   rU   xs       rI   test_unbound_methodszBaseTest.test_unbound_methods   s    IACC	EUG$$$MM!QE"""1q)))))r[   c                      G d dt           t                             }|                     |j        t           f           |                     |j        t
                     d S )Nc                       e Zd ZdS )$BaseTest.test_subclassing.<locals>.CNr<   
__module____qualname__r:   r[   rI   Crp              Dr[   rt   )r`   r>   rA   	__bases__	__class__type)rE   rt   s     rI   test_subclassingzBaseTest.test_subclassing   sh    	 	 	 	 	S	 	 	 	tg...d+++++r[   c                    t           t          d f         }|                     t                               t	          d                    d d d           |                     |                    t	          d                    d d d           d S )NrX   )r   rV   )ra   r>   rA   fromkeysrangerE   rF   s     rI   test_class_methodszBaseTest.test_class_methods   su    dOuQxx00dt2D2DEEEE!HH--4D/A/ABBBBBr[   c                     t           t                   }|                     t                    5  |t                    d d d            d S # 1 swxY w Y   d S N)r`   r>   assertRaisesrR   r}   s     rI   test_no_chainingzBaseTest.test_no_chaining   s    Iy)) 	 	cFF	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	s   AAAc                      G d dt                     }|t                   }|                     |j        |           |                     |j        t          f           |                     |j        d           d S )Nc                       e Zd ZdS ).BaseTest.test_generic_subclass.<locals>.MyListNrq   r:   r[   rI   MyListr      ru   r[   r   r:   )r`   r>   r?   r@   rA   rB   rC   )rE   r   rF   s      rI   test_generic_subclasszBaseTest.test_generic_subclass   s    	 	 	 	 	T 	 	 	3KalF+++cV,,,)2.....r[   c                     G d dt                     }|                     t          t           t                             d           |                     t          t           d                   d           |                     t          t          t
          df                   d           t          g t          t
                   R          }|                     t          |          d           t          g t          t
          t          f         R          }|                     t          |          d	           t          g t          t
          df         R          }|                     t          |          d
           |                     t          |t
                                                 d                     |                     t          t          t                                         d           d S )Nc                       e Zd ZdS )"BaseTest.test_repr.<locals>.MyListNrq   r:   r[   rI   r   r      ru   r[   r   z	list[str]r:   zlist[()].ztuple[int, ...]ztuple[*tuple[int]]ztuple[*tuple[int, str]]ztuple[*tuple[int, ...]]z(.BaseTest.test_repr.<locals>.MyList[int]z[])r`   rA   reprrM   r_   r>   
assertTrueendswith)rE   r   x1x2x3s        rI   	test_reprzBaseTest.test_repr   s   	 	 	 	 	T 	 	 	d3i+666d2h444eCHo..0ABBB;E#J;;b#7888#E#s(O##$b#<===#E#s(O##$b#<===VC[))223]^^___d3ikk**D11111r[   c                 L   dd l }|                    t          t                    }|                     t          |          d           |                     |j        t                     |                     |j        t          f           |                     |j	        d           d S )Nr   z	list[int]r:   )
typesr%   r`   r>   rA   rM   r?   r@   rB   rC   )rE   r   rU   s      rI   test_exposed_typezBaseTest.test_exposed_type   s    tS))Q---alD)))cV,,,)2.....r[   c                 "   ddl m}m}m} t          t
          t          f         }|                     |j        t
          t          f           |                     |j	        d           t          t
          t          f         }|                     |j        t
          t          f           |                     |j	        t          f           t          t          t          f         }|                     |j        t          t          f           |                     |j	        t          f           t          t          t          f         }|                     |j        t          t          f           |                     |j	        t          t          f           t          t          t          f         }|                     |j        t          t          f           |                     |j	        t          f           t          t
                   }	|                     |	j        t
          f           |                     |	j	        d           t          t                   }
|                     |
j        t          f           |                     |
j	        t          f           t          t          t                            }|                     |j        t          t                   f           |                     |j	        t          f           t          |t                            }|                     |j        |t                   f           |                     |j	        t          f           t          |t          t          f                  }|                     |j        |t          t          f         f           |                     |j	        t          t          f           t          |t          t          f                  }|                     |j        |t          t          f         f           |                     |j	        t          f           t          |t          t          gt          f                  }|                     |j        |t          t          gt          f         f           |                     |j	        t          t          f           t          g t          t                   R          }|                     |j        g t          t                   R            |                     |j	        d           t          g t          t                   R          }|                     |j        g t          t                   R            |                     |j	        t          f           t          g t          t          t
          f         R          }|                     |j        g t          t          t
          f         R            |                     |j	        d           d S )Nr   )ListDictCallabler:   )typingr   r   r   ra   rM   r>   rA   rB   rC   r5   r4   r3   r`   r_   )rE   r   r   r   D0D1aD1bD2aD2bL0L1L2L3L4aL4bL5T1T2T4s                      rI   test_parameterszBaseTest.test_parameters   s   //////////#s(^sCj111*B///36lQx000+aT2221c6l3x000+aT2221a4j1v...+aV4441a4j1v...+aT222#Ysf---*B///!Wqd+++*QD111$q']tAwj111*QD111$q']tAwj111*QD11141:QT
}555+aV44443< QV777+aT222(Aq619%&xA	':&<===*QF333;E#J;;KeCjNN	
 	
 	
 	*B///9E!H99KeAhLL	
 	
 	
 	*QD111#E#s(O##$KeCHo	
 	
 	
 	*B/////r[   c                    ddl m}m}m}m} |                     t          t                   t                   t          t                              |                     t          t          t          f         t                   t          t          t          f                    |                     t          t          t          f         t                   t          t          t          f                    |                     t          t          t          f         t          t          f         t          t          t          f                    |                     t          t          t          f         t                   t          t          t          f                    |                     t          t          t                            t                   t          t          t                                       |                     t          t          t          t          f                  t                   t          t          t          t          f                             |                     t          t          t          t          f                  t                   t          t          t          t          f                             |                     t          t          t          t          f                  t          t          f         t          t          t          t          f                             |                     t          t          t          t                   f         t                   t          t          t          t                   f                    |                     t          |t                            t                   t          |t                                       |                     t          |t          t          f                  t          t          f         t          |t          t          f                             |                     t          |t          t          f                  t          t          f         t          |t          t          f                             |                     t          |t          t          gt          f                  t          t          f         t          |t          t          gt          f                             |                     t          t          |t                   f         t                   t          t          |t                   f                    |                     t                    5  t          t                   t                    d d d            n# 1 swxY w Y   |                     t                    5  t          t          t          f         t          t          f          d d d            n# 1 swxY w Y   |                     t                    5  t          t          t          f         t          t          f          d d d            n# 1 swxY w Y   |                     t                    5  t          t          t          f         t          t          f          d d d            d S # 1 swxY w Y   d S )Nr   )r   r   Unionr   )r   r   r   r   r   rA   r`   r3   r>   ra   rM   r4   r5   r   rR   )rE   r   r   r   r   s        rI   test_parameter_chainingz BaseTest.test_parameter_chaining  s   666666666666atCy111c1fc*DcN;;;afc*DcN;;;adCH-tCH~>>>adC$sCx.999d1gs+T$s)_===d1c6l+C0$tCH~2FGGGd36l+C0$tCH~2FGGGd1a4j)#s(3T$sCx.5IJJJacl+C0$sDI~2FGGGd1gs+T$s)_===d1a4j)#s(3T$sCx.5IJJJeAqDk*384d5c?6KLLLh1vqy1238<hSz378	: 	: 	:acl+C0$sDI~2FGGGy)) 	 	IcNN	 	 	 	 	 	 	 	 	 	 	 	 	 	 	y)) 	# 	#CLc""	# 	# 	# 	# 	# 	# 	# 	# 	# 	# 	# 	# 	# 	# 	#y)) 	# 	#aLc""	# 	# 	# 	# 	# 	# 	# 	# 	# 	# 	# 	# 	# 	# 	#y)) 	! 	!AJsCx  	! 	! 	! 	! 	! 	! 	! 	! 	! 	! 	! 	! 	! 	! 	! 	! 	! 	!sH   9V##V'*V',X  XX%,YY!$Y!,Z;;Z?Z?c                 L   |                      t          t                   t          t                              |                      t          t          t          f         t          t          t          f                    |                      g t
          t                   R d         g t
          t                   R d                    |                      t
          g t
          t                   R          t
          g t
          t                   R                     |                     t          t          t          f         t          t          t          f                    |                     t          t          t                              |                     t          t                   t                     |                     t          t                   t
          t                              |                     g t
          t                   R d         t
          t                              d S )Nr   )rA   r`   r>   ra   rM   r_   assertNotEqualrE   s    rI   test_equalityzBaseTest.test_equality;  sU   cDI...c3hc3h8885:*NeCjNN1,=>>>{c
{{+U;E#J;;-?@@@DcNDcN;;;D$s),,,DIt,,,DIuSz222NeCjNN1-uSz:::::r[   c                     |                      t          g t                               |                     t                    5  t          g t          t
                              d d d            d S # 1 swxY w Y   d S r   )r   
isinstancer`   r   rR   rM   r   s    rI   test_isinstancezBaseTest.test_isinstanceF  s    
2t,,---y)) 	& 	&r49%%%	& 	& 	& 	& 	& 	& 	& 	& 	& 	& 	& 	& 	& 	& 	& 	& 	& 	&s   !A11A58A5c                 "    G d dt                     }|                     t          |t                                |                     t                    5  t          |t           t
                              d d d            d S # 1 swxY w Y   d S )Nc                       e Zd ZdS )#BaseTest.test_issubclass.<locals>.LNrq   r:   r[   rI   Lr   L            r[   r   )r`   r   
issubclassr   rR   rM   )rE   r   s     rI   test_issubclasszBaseTest.test_issubclassK  s    
1d++,,,y)) 	% 	%q$s)$$$	% 	% 	% 	% 	% 	% 	% 	% 	% 	% 	% 	% 	% 	% 	% 	% 	% 	%s   !BBBc                 .   t           t                   } |ddi           }|                     t          |t                                 |            }|                      ||          |           |                      |d          t                     d S )NTestr:   r   )rx   r>   r   r   rA   )rE   rF   r   r]   s       rI   test_type_genericzBaseTest.test_type_genericQ  s    IqR  
4..///tvv4$'''1s#####r[   c                      G d dt                     }|                     t          d          5  |t                    d d d            d S # 1 swxY w Y   d S )Nc                       e Zd ZdS )3BaseTest.test_type_subclass_generic.<locals>.MyTypeNrq   r:   r[   rI   MyTyper   Z  ru   r[   r   )rx   rQ   rR   r>   )rE   r   s     rI   test_type_subclass_genericz#BaseTest.test_type_subclass_genericY  s    	 	 	 	 	T 	 	 	##Ix88 	 	3KK	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	s   A

AAc           	      h   t          t          t                    gt          z   }|D ]
}t	          t
          j        dz             D ]}|                     ||          5  t          j        ||          }t          j	        |          }| 
                    |j        |j                   | 
                    |j        |j                   | 
                    |j        |j                   | 
                    t          |          t          |                     d d d            n# 1 swxY w Y   d S )NrV   )rH   proto)r%   r`   r3   _UNPACKED_TUPLESr|   pickleHIGHEST_PROTOCOLr=   dumpsloadsrA   r@   rB   rC   rx   )rE   aliasesrH   r   sloadeds         rI   test_picklezBaseTest.test_pickle_  sm   a((),<< 	@ 	@Ev6:;; @ @\\U\;; @ @UE22A#\!__F$$V%68HIII$$V_enEEE$$V%:E<PQQQ$$T&\\4;;???@ @ @ @ @ @ @ @ @ @ @ @ @ @ @@	@ 	@s   B:D$$D(+D(c                     G d dt                     }t          t           t                    t          t          t                    t          |t                    gt          z   }|D ]}|                     |          5  t          j        |          }|                     |j        |j                   |                     |j	        |j	                   |                     |j
        |j
                   t          j        |          }|                     |j        |j                   |                     |j	        |j	                   |                     |j
        |j
                   d d d            n# 1 swxY w Y   d S )Nc                       e Zd Zd Zd ZdS )BaseTest.test_copy.<locals>.Xc                     | S r   r:   r   s    rI   __copy__z&BaseTest.test_copy.<locals>.X.__copy__m      r[   c                     | S r   r:   )rE   memos     rI   __deepcopy__z*BaseTest.test_copy.<locals>.X.__deepcopy__o  r   r[   N)r<   rr   rs   r   r   r:   r[   rI   Xr   l  s2              r[   r   )rH   )r`   r%   r3   r   r   r=   copyrA   r@   rB   rC   deepcopy)rE   r   r   rH   copieds        rI   	test_copyzBaseTest.test_copyk  s   	 	 	 	 	 	 	 	 q!!""A
 	
  		N 		NEE** N N5))  !2E4DEEE  %.AAA  !68LMMMu--  !2E4DEEE  %.AAA  !68LMMMN N N N N N N N N N N N N N N		N 		Ns   ?C)E44E8	;E8	c                     t           t          df         }|                     |j        d           g |R d         }|                     |j        d           d S )N.Fr   T)r_   rM   r?   __unpacked__)rE   rH   unpackeds      rI   test_unpackzBaseTest.test_unpack  sR    c3he(%000U99Q<h+T22222r[   c                    t           j        t          t                   t          t                   f         }|                     |j        t          t                   t          t                   f           |                     |j        d           d S )Nr:   )r   r   r`   r>   rM   rA   rB   rC   rE   rU   s     rI   
test_unionzBaseTest.test_union  s_    LcDI-.d3ic%;<<<)2.....r[   c                 2   t           j        t          t                   t          t          df         f         }|                     |j        t          t                   t          t          df         f           |                     |j        t          f           d S )N.)r   r   r`   r3   r_   rA   rB   rC   r   s     rI   test_union_genericzBaseTest.test_union_generic  si    La%3-/0d1guQV}%=>>>)A400000r[   c                    t          t          t          t                                       }|                     |                    t          t                                         dD ]}|                     ||           d S )N)r@   rB   rC   )rb   dirr`   r>   r   
issupersetassertIn)rE   dir_of_gen_aliasgeneric_alias_propertys      rI   test_dirzBaseTest.test_dir  sx    s49~~..(33CII>>???&R 	D 	D"MM02BCCCC	D 	Dr[   c                     | j         D ]t}||j        }|                     d|           5  |t                   }|                      t          |                      |           d d d            n# 1 swxY w Y   ud S rL   )r;   r<   r=   r>   rA   r0   rD   s       rI   test_weakrefzBaseTest.test_weakref  s    # 	6 	6AyJE00011 6 6#  Uu5556 6 6 6 6 6 6 6 6 6 6 6 6 6 6		6 	6s   9A11A5	8A5	c                     |                      t                    5  t          t                     d d d            d S # 1 swxY w Y   d S )Nbad)r   rR   r%   rN   r   s    rI   test_no_kwargszBaseTest.test_no_kwargs  s    y)) 	$ 	$U####	$ 	$ 	$ 	$ 	$ 	$ 	$ 	$ 	$ 	$ 	$ 	$ 	$ 	$ 	$ 	$ 	$ 	$s   >AAc                 j    G d dt                     } |t          t                    } G d dt                     }|                     |t          t                              |                     t
                    5   |t          t          t                     d d d            d S # 1 swxY w Y   d S )Nc                       e Zd ZdS )>BaseTest.test_subclassing_types_genericalias.<locals>.SubClassNrq   r:   r[   rI   SubClassr     r   r[   r   c                        e Zd Z fdZ xZS )9BaseTest.test_subclassing_types_genericalias.<locals>.Badc                 B     t                      j        | g|R i | d S r   )super__new__)clsargskwargsrw   s      rI   r   zABaseTest.test_subclassing_types_genericalias.<locals>.Bad.__new__  s/    5d555f55555r[   )r<   rr   rs   r   __classcell__)rw   s   @rI   Badr     s8        6 6 6 6 6 6 6 6 6r[   r   r   )r%   r`   r>   rA   r   rR   )rE   r   rH   r   s       rI   #test_subclassing_types_genericaliasz,BaseTest.test_subclassing_types_genericalias  s   )))))|)))s##	6 	6 	6 	6 	6, 	6 	6 	6 	S	***y)) 	$ 	$Ccs####	$ 	$ 	$ 	$ 	$ 	$ 	$ 	$ 	$ 	$ 	$ 	$ 	$ 	$ 	$ 	$ 	$ 	$s   =B((B,/B,c                     t           t          t          f         }t          |          }t	          |          }|                     t          |          d           d S )Nz*tuple[int, str])r_   r>   rM   rd   nextrA   r   )rE   rF   iter_trl   s       rI   test_iter_creates_starred_tuplez(BaseTest.test_iter_creates_starred_tuple  sH    #s(OaLLa"455555r[   c                     t           t          t          f         }t          |          }t	          |           |                     t                    5  t	          |           d d d            d S # 1 swxY w Y   d S r   )r_   r>   rM   rd   r  r   StopIteration)rE   rF   r  s      rI   ,test_calling_next_twice_raises_stopiterationz5BaseTest.test_calling_next_twice_raises_stopiteration  s    #s(OaV}-- 	 	LLL	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	s   A//A36A3c                 X    t           t          t          f         }t          |          }~d S r   )r_   r>   rM   rd   )rE   rF   iter_xs      rI   test_del_iterzBaseTest.test_del_iter  s!    #s(OaFFr[   )or<   rr   rs   __doc__rx   r_   r`   ra   rb   rc   	enumerater   r   r   r   r   r   r   r   r   r#   r$   r   r   r   r   r   r   	Awaitable	CoroutineAsyncIterableAsyncIteratorAsyncGenerator	GeneratorIterableIterator
Reversible	Container
Collectionr   r   r   r   r   Set
MutableSetMappingMutableMappingMappingViewKeysView	ItemsView
ValuesViewSequenceMutableSequencer&   r'   r"   r   r   r   r(   r)   r-   r    r,   r*   r+   r.   r/   r0   r!   r
   r   r   r;   ctypesextendArrayLibraryLoaderr   r   MPSimpleQueuerJ   rS   rf   rm   ry   r~   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r
  r:   r[   rI   r7   r7   Y   s       "T "5 "$ " "c "9 "i " ""'"$" " 	"
 !"
 #*"
 ,4"
 6>" " $" " ," .=" '" ," .I" " !*" #" %2" $" &/" "  ("  " " !+"  !"  +!""  #"" "'#"$ %"& '"& %'"( )"( -)"( /:)"* +"*  )+"* +5+", -",  /-". &/". (:/"0 1"2 3"4 #5"4 %25"6 (7"6 *>7"8 9"8 (9": *;"< !="< #.="> ?"> ,?"> .1?"@ #A"B C"B 'C"D E"MF flF,@ABBBj+}EFFF	; 	; 	;  K K K$* * *, , ,C C C
  
/ / /2 2 2/ / /<0 <0 <0|! ! !<	; 	; 	;& & &
% % %$ $ $  
@ 
@ 
@N N N.3 3 3/ / /
1 1 1
D D D6 6 6$ $ $
	$ 	$ 	$6 6 6      r[   r7   c                   "    e Zd ZeefZd Zd ZdS )TypeIterationTestsc                    | j         D ]}|                     |          5  d}|                     t          |          5  t	          |           d d d            n# 1 swxY w Y   |                     t          |          5  t          |           d d d            n# 1 swxY w Y   |                     t          |          5  |D ]}	 d d d            n# 1 swxY w Y   d d d            n# 1 swxY w Y   d S )N)rx   zobject is not iterable)_UNITERABLE_TYPESr=   rQ   rR   rd   r`   )rE   	test_typeexpected_error_regex_s       rI   test_cannot_iteratez&TypeIterationTests.test_cannot_iterate  s   / 		 		I9--  '?$++I7KLL $ $OOO$ $ $ $ $ $ $ $ $ $ $ $ $ $ $++I7KLL $ $OOO$ $ $ $ $ $ $ $ $ $ $ $ $ $ $++I7KLL  &                              		 		s|   C,AC,AC,!A"C, BC,B  C,#B $C,C	C,CC,CC,,C0	3C0	c                 P    | j         D ]}|                     |t                     d S r   )r*  assertNotIsInstancer  )rE   type_to_tests     rI    test_is_not_instance_of_iterablez3TypeIterationTests.test_is_not_instance_of_iterable  s7     2 	= 	=L$$\8<<<<	= 	=r[   N)r<   rr   rs   r`   r_   r*  r.  r2  r:   r[   rI   r(  r(    s<        u
 
 
= = = = =r[   r(  __main__)`r  unittestr   r   collectionsr   r   r   r   r   r   collections.abcconcurrent.futuresr
   concurrent.futures.threadr   
contextlibr   r   contextvarsr   r   dataclassesr   	functoolsr   r   r   graphlibr   loggingr   r   mailboxr   r   r"  ImportErrordifflibr   filecmpr   	fileinputr   	itertoolsr   http.cookiesr   multiprocessing.managersr   multiprocessing.poolr   multiprocessing.queuesr    r&  multiprocessing.shared_memoryr!   osr"   rer#   r$   r   r%   r&   r'   tempfiler(   r)   urllib.parser*   r+   unittest.caser,   queuer-   weakrefr.   r/   r0   r   r1   r2   r3   r4   r5   r_   r>   rM   rN   r   TestCaser7   r(  r<   mainr:   r[   rI   <module>rS     sl   + +                       % % % % % % / / / / / / J J J J J J J J ) ) ) ) ) ) ) )       = = = = = = = = = = & & & & & & 0 0 0 0 0 0 0 0 ) ) ) ) ) ) ) )MMMM   FFF # # # # # #                        333333000000CCCCCCC   JKMMM	
;;;;;;;   MMM               D D D D D D D D D D = = = = = = = = 1 1 1 1 1 1 1 1 . . . . . . $ $ $ $ $ $ $ $ / / / / / / / / / /             GCLLGCLLGCLL eCjNN1eAhLLOeCHoeCHoeAsFma	
5c?

	.5C=..	#
c3h

 	
5c?
C

 	%
&%S/
&3
&
&'	
"5!%S/!!"
"
"#
5:
58
5c?
5c?
5C=	&sCx
!"	&q#v
 	#veCHo&
&'	&sCx
!3
&'	%c3h(#
-.	&veCHo./
01	&'c3h''(
)*	
)5c3h()
)
)*7 >h h h h hx  h h hV= = = = =* = = =( zHMOOOOO s6   &A+ +A54A5B* *B87B8<C CC