Uname:Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 3.111.61.48  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.2.31
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3.10/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.10/test/__pycache__/test_dictviews.cpython-310.pyc
o

�9j�6�@sRddlZddlZddlZddlZddlZGdd�dej�Zedkr'e�	�dSdS)�Nc@s�eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd �Zd!S)"�DictSetTestcCsvti���}|�t|i�|�t|�ti���}|�t|i�|�t|�ti���}|�t|i�|�t|�dS�N)�type�keys�assertRaises�	TypeError�items�values)�self�kt�it�vt�r�*/usr/lib/python3.10/test/test_dictviews.py�test_constructors_not_callable	sz*DictSetTest.test_constructors_not_callablecCsddd�}|��}|�t|�d�|�t|�ddh�|�|ddh�|�|hd��|�|ddh�|�|dh�|�|d	�|�d|�|�d|�|�d|�|�d
|�|�|��|���ddd�}|�|��|���|d=|�|��|���dS)
N�
�ABC���a�rr>r�brr�*�Z��def)r�assertEqual�len�set�assertNotEqual�assertIn�assertNotIn)r
�dr�errr�test_dict_keyss$

zDictSetTest.test_dict_keyscCs$ddd�}|��}|�t|�d�|�t|�ddh�|�|ddh�|�|hd��|�|ddh�|�|dh�|�|d	�|�d|�|�d|�|�d
|�|�d|�|�d|�|�d
|�|�d|�|�|��|���|��}|�|��|���d|d<|�|��|���dS)Nrrrr�rr�rr>r&r%�junk)rrr)rrrr)r)rr�rr)rrrrrr r!�copy)r
r"rr#rrr�test_dict_items(s*
zDictSetTest.test_dict_itemscCs@ddd�}ddd�}|�|��|���|�|��|���dS)Nr�))rr)rrrr�rr)rrrr)r
r"r#rrr�test_dict_mixed_keys_items?s

z&DictSetTest.test_dict_mixed_keys_itemscCs:ddd�}|��}|�t|�ddh�|�t|�d�dS)Nrrrr)r	rrr)r
r"r	rrr�test_dict_valuesEs
zDictSetTest.test_dict_valuescCs�ddd�}|�t|�t�t|���}|�|t�|�|dkp"|dk�t|���}|�|t�|�|dkp9|dk�t|���}|�|t�|�|dkpP|d	k�dS)
Nrrrz#dict_items([('a', 'ABC'), (1, 10)])z#dict_items([(1, 10), ('a', 'ABC')])zdict_keys(['a', 1])zdict_keys([1, 'a'])zdict_values(['ABC', 10])zdict_values([10, 'ABC']))�assertIsInstance�repr�strr�
assertTruerr	�r
r"�rrrr�test_dict_reprKs"
���zDictSetTest.test_dict_reprcs�ddd�}ddd�}ddd�}d	di}G�fd
d�dt��|�|��|��@dd
h�|�|��|��@d
h�|�|��|��@t��|�|��t|���@dd
h�|�|��t|���@d
h�|�|��t|���@t��|�|��t|���@dd
h�|�|��|��@d	h�|�|��|��@d	h�|�|��t|���@d	h�|�|��t|���@t�|�t|���|��@t�|�t|���|���@�t�|�t|��g@�t�|�tg|��@�t�|�|��|��Bdd
h�|�|��|��Bhd��|�|��|��Bhd��|�|��t|���Bdd
h�|�|��t|���Bhd��|�|��t|���Bhd��|�|��dBhd��|�|��|��At��|�|��|��Addh�|�|��|��Ahd��|�|��t|���At��|�|��t|���Addh�|�|��t|���Ahd��|�|��t|���Addh�|�|��|��t��|�|��|��dh�|�|��|��dd
h�|�|��t|���t��|�|��t|���dh�|�|��t|���dd
h�|�|��ddd
h�|�|���	|����|�|���	|����|�|���	t
|�����|�|���	t|�����|�|���	hd���|�|���	gd���|�|���	tgd����|�|���	tddg���|�|���	ddg��|�|���	i��|�|���	|����i}|�|���	t���|�|���	g��|�|���	|����|�|���	dg��dS)Nrr�rrr()r�c���r"r#r"cseZdZ��fdd�Z�ZS)z7DictSetTest.test_keys_set_operations.<locals>.CustomSetcs�t��|��Sr)�super�intersection�r
�other)�	CustomSet�	__class__rrr<bszDDictSetTest.test_keys_set_operations.<locals>.CustomSet.intersection)�__name__�
__module__�__qualname__r<�
__classcell__r�r?)r@rr?asr?rr>rrr7>rrr"r#r,>rrrrr7)rr��x�y�z�rGrHrIrGrH)rrr�tupler/�	frozenset�assertIsr�assertFalse�
isdisjoint�listr2)r
�d1�d2�d3�d4�derrEr�test_keys_set_operations[sz


     � �  z$DictSetTest.test_keys_set_operationscCs�ddd�}ddd�}ddd�}|�|��|��@ddh�|�|��|��@dh�|�|��|��@t��|�|��t|���@ddh�|�|��t|���@dh�|�|��t|���@t��|�|��|��Bddh�|�|��|��Bhd	��|�|��|��Bhd
��|�|��t|���Bddh�|�|��t|���Bhd	��|�|��t|���Bhd
��|�|��|��At��|�|��|��Addh�|�|��|��Ahd
��|�|��|��t��|�|��|��dh�|�|��|��ddh�|�|��t|���t��|�|��t|���dh�|�|��t|���ddh�|�|���|����|�|���|����|�|���t|�����|�|���t|�����|�|���hd���|�|���gd
���|�|���tgd
����|�|���tddg���|�|���i��|�|���|����i}|�|���t���|�|���g��|�|���|����|�|���dg��dS)Nrrr6r8r9r:�rr�rr>rW�rrrX>�r"r8�r#r9rWrXrYrFrJrGrH)rrrrNrOrPr2)r
rQrRrSrUrrr�test_items_set_operations�sv


���������� z%DictSetTest.test_items_set_operationscCs�ddd�}|�|��tddg�@dh�|�|��tddg�Bhd��|�|��tddg�Addh�|�|��tddg�dh�|��}|�|tdg�@dh�|�|tdg�Adh�|�|tdg�Bddh�|�|tdg�dh�dS)	Nrr8)rr(r>rrr(r(r,)r(r8)rr�iterr)r
�originrrrr�!test_set_operations_with_iterator�s
  z-DictSetTest.test_set_operations_with_iteratorcCs�|�t��i��d@Wd�n1swY|�t��i��dBWd�n1s1wY|�t��i��dAWd�n1sLwY|�t��i��dWd�n1sgwY|�t��i��d@Wd�n1s�wY|�t��i��dBWd�n1s�wY|�t��i��dAWd�n1s�wY|�t��i��dWd�dS1s�wYdS)Nr)rrrr�r
rrr�$test_set_operations_with_noniterable�s0�������"�z0DictSetTest.test_set_operations_with_noniterablecCsHi}|��|d<t|�}|�|t�|��|d<t|�}|�|t�dS)Nr)r	r0r/r1rr3rrr�test_recursive_repr�szDictSetTest.test_recursive_reprcCs8i}tt��d�D]}d|��i}q
|�tt|�dS)N�dr)�range�sys�getrecursionlimitr	r�RecursionErrorr0)r
r"�irrr�test_deeply_nested_reprsz#DictSetTest.test_deeply_nested_reprcCsJddd�}|�ttj|���|�ttj|���|�ttj|���dS)Nrrr)rrr)rr	r�r
r"rrr�	test_copys
zDictSetTest.test_copycsGdd�dt��G�fdd�d�}|�|�}}|�|�}}||i}|�||�|�||���|�||���|�||f|���|��|j|�|��|��j|�|��|��j||f�|��|��j||f�|����||��vWd�dS1s�wYdS)Nc@seZdZdS)z+DictSetTest.test_compare_error.<locals>.ExcN)rArBrCrrrr�Excsrlcs eZdZdd�Z�fdd�ZdS)z-DictSetTest.test_compare_error.<locals>.BadEqcSsdS)N�rr`rrr�__hash__�z6DictSetTest.test_compare_error.<locals>.BadEq.__hash__cs��rrr=�rlrr�__eq__roz4DictSetTest.test_compare_error.<locals>.BadEq.__eq__N)rArBrCrnrqrrprr�BadEqsrr)�	Exceptionr rr	rr�__contains__)r
rr�k1�k2�v1�v2r"rrpr�test_compare_errors "�zDictSetTest.test_compare_errorcCsvddd�}ttjd�D],}|�ttjftj|��|�|�ttjftj|��|�|�ttjftj|�	�|�qdS)Nrrrr)
rd�pickle�HIGHEST_PROTOCOLrr�
PicklingError�dumpsrr	r)r
r"�protorrr�test_pickle,s
����zDictSetTest.test_picklecCsvtdd�}|�|��tjj�|�|��tjj�|�|��tjj�|�|��tjj�|�|��tjj	�|�|��tjj
�|�|��tjj�|�|��tjj�|�|��tjj�|�|��tjj
�|�|��tjj	�|�|��tjj
�|�|��tjj�|�|��tjj�|�|��tjj�|�|��tjj�|�|��tjj	�|�|��tjj
�dS)Nr)r)�dictr/r�collections�abc�KeysView�MappingView�Set�Sized�Iterable�	Containerr	�
ValuesView�
Collectionr�	ItemsViewrjrrr�test_abc_registry6s&
zDictSetTest.test_abc_registryN)rArBrCrr$r*r-r.r5rVr\r_rarbrirkryrr�rrrrrs"F8


r�__main__)
�collections.abcr�r)rzre�unittest�TestCaserrA�mainrrrr�<module>sJ�

Youez - 2016 - github.com/yon3zu
LinuXploit