403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Python315/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python315/Lib/test/__pycache__/test_dbm.cpython-315.opt-1.pyc
R
>lqj6,c�
�Qs]PHs]PHs]PHs]QHGs]QHGs]QH
Gs]QH
G
s
\Os\OO\\O2sQsQsQsQQ	2sQ
Q\O(2s\2FD;s\O.Q*sQ
\0s\\\\O(1Q\-2\2\$J=	\Q6Xc\O82P!P!\	cPsK�h9h\	cPs
K�h9h)z=Test script for the dbm.open function based on testdumbdbm.py)�
import_helper)�	os_helper)�sqlite3)�ndbmc#� �[OFD*o[UQ,Q5oU[OU$Uw�	J,	P![cJ>h9h3h)�open)�fromlist)�dbm�_names�
__import__�ImportError�_modules)�name�mods  �"C:\Python315\\Lib\test\test_dbm.py�dbm_iteratorrsN����
�
��	��T�V�H�5�C�!����T���	�
���	��	�s-�A�A�A�	A�A�A�A�Ac�<�[O[2P!�N)r�rmtree�dirname��r�cleaunup_test_dirr's��
���W�rc�P�[2[O[2P!r)r�os�mkdirrrrr�setup_test_dirr*s�����H�H�W�rc�`�\sQs]/snQQQQQQQQQ	Q
QQ-sQ
sQsQsQsQs	Qs
QsQsQs
QsQsQsQsQsQsQsQsQsQsQ sQ!sQ"sUsP!)#�AnyDBMTestCase�asPython:�bsProgramming�csthe�dsway�fsGuido�gsintendedc���[O[Q2oUOFD'oUOU*VO	Q2$J)	UO2P!)�n�ascii)rr�_fname�_dict�encode�close)�selfr"�ks&  r�init_db�AnyDBMTestCase.init_db8sB���H�H�V�S�!�����A�#'�:�:�a�=�A�h�h�w�� ��	���	rc��[QUO222o[UOO22oUOV#2U!)c3�N�SF �DpOQ2w�	J	P!3h�r&)�decode)�.0r,s& r�	<genexpr>�-AnyDBMTestCase.keys_helper.<locals>.<genexpr>?s������A�h�h�w�'�'��s�%)�sorted�keysr(�assertEqual)r+r"r7�dkeyss&&  r�keys_helper�AnyDBMTestCase.keys_helper>s@���:�����:�:���t�z�z���(�)������%��rc�\�UOUOO[2P!r)�assertIsSubclass�module�error�OSError�r+s&r�
test_error�AnyDBMTestCase.test_errorDs�����d�k�k�/�/��9rc�n�UO[O[O[2P!r)�assertRaisesrr?rr'rAs&r�test_anydbm_not_existing�'AnyDBMTestCase.test_anydbm_not_existingGs�����#�)�)�S�X�X�v�6rc�B�[O[Q2oUO[	UO22,2UOFD'oUOU*VOQ2$J)	UOU2UO2P!)r r&)
rrr'r8�listr7r(r)�read_helperr*�r+r"�keys&  r�test_anydbm_creation�#AnyDBMTestCase.test_anydbm_creationJsj���H�H�V�S�!������a�f�f�h���,��:�:�C�%)�Z�Z��_�A�j�j��!�"�������	���	rc���[O[2[O[Q29^tt^2oUO[
U2]2PPP2P!)%fhP!9h)r%)r�create_empty_filer'rrr8�len�r+r"s& r�8test_anydbm_creation_n_file_exists_with_invalid_contents�GAnyDBMTestCase.test_anydbm_creation_n_file_exists_with_invalid_contentsRsF���#�#�F�+�
�X�X�f�c�
"�
"�a����S��V�Q�'�#�
"�
"�
"�s�A%�%A6	�.A6	c�>�UO2[O[Q2oQ9UOQ$UQ$UOU2UO
UOQQ2Q2UO
UQ*Q2UO2P!)r sindentedr#�g�xxx�foo)	r-rrr'r(rJr8�
setdefaultr*rRs& r�test_anydbm_modification�'AnyDBMTestCase.test_anydbm_modificationXsw�������H�H�V�S�!��$/�/��
�
�3��!�D�'������������f�f�5�v�>�����6��F�+�	���	rc��UO2[O[Q2oUO	U2UOUO
Q2UOQ*2UOUO
QQ2Q2UOUO
Q22UO[29^tt^2UQ*PPP2UO2P!)%fhK"9h)�r�arrWrX)r-rrr'rJr8�getr(�assertIsNonerE�KeyErrorr*rRs& r�test_anydbm_read�AnyDBMTestCase.test_anydbm_readbs��������H�H�V�S�!�������������t��d�j�j��o�6�������v�v�.��7����!�%�%��-�(�
�
�
�x�
(�
(�
�f�I�)�	���	�)�
(�s�
C3�3D	�<D	c��UO2[O[Q2oUO	U2oUO2P!)r])r-rrr'r:r*)r+r"r7s&  r�test_anydbm_keys�AnyDBMTestCase.test_anydbm_keysns4�������H�H�V�S�!������"��	���	rc�&�[[OQP2Q6XcUOQ2[O[
Q2oUO
UO2,2QUQ$UO
UO2Q,2UOQU2UO
UQ*Q2UO
UOQ2Q2UO
UOQ2Q2UO2P!)�libraryzBerkeley DBzCBerkeley DB doesn't distinguish the empty value from the absent oner rsempty)�getattrr�_defaultmod�skipTestrr'r8r7�assertInr_rYr*rRs& r�test_empty_value�AnyDBMTestCase.test_empty_valuets����3�?�?�I�t�4�
�E��M�M�0�
1��H�H�V�S�!���������2�&���(���������H�:�.��
�
�h��"�����8��c�*�������x��#�.�������h�/��5�	���	rc���UO2[O[Q2oQO	Q2oUOV!2UO
2P!)r]rr&)r-rrr'r)rlr*rKs&  r�test_anydbm_access�!AnyDBMTestCase.test_anydbm_access�s>�������H�H�V�S�!���j�j��!���
�
�c��	���	rc�8`�UO2[O[Q29^tt^2n[	RQ2%fUOQ2UO
[OU1Qk2PPP2P!)%fhP!9h)r]�
reorganize�2method reorganize not available this dbm submodulec�&:�RO2!r)rs�r!s�r�<lambda>�@AnyDBMTestCase.test_anydbm_readonly_reorganize.<locals>.<lambda>�s������r)r-rrr'�hasattrrkrEr?)r+r!s&@r�test_anydbm_readonly_reorganize�.AnyDBMTestCase.test_anydbm_readonly_reorganize�s]�������
�X�X�f�c�
"�
"�a��1�l�+�+��
�
�R�S����c�i�i�)?�@�#�
"�
"�
"�s�B�	5B�B	�B	c�*�UO2[O[Q29^tt^2o[	UQ2%fUOQ2[
UO22oSTt,tFDp1U*MJ
	ooUO2[
UO22oSTt,tFDp1U*MJ
	ooUOV%2UOVF2PPP2P!ttohttoh)%fhP!9h)r rsrt)
r-rrr'ryrkr6r7rsr8)r+r!�keys_beforer,�
values_before�
keys_after�values_afters&      r�*test_anydbm_reorganize_not_changed_content�9AnyDBMTestCase.test_anydbm_reorganize_not_changed_content�s�������
�X�X�f�c�
"�
"�a��1�l�+�+��
�
�R�S� �����*�K�+6�7�;�a�q�T�T�;�M�7�
�L�L�N������)�J�*5�6�+�Q�a�D�D�+�L�6����[�5����]�9�#�
"��8��7�#�
"�
"�s5�D�-D�5C7�.D�6C<�	$D�7
D�D	�
D	c	�(�Qo[O[Q29^tt^2o[UQ2%fUO	Q2UO
FD.oUO
U*Q*V#O
Q2$J0	[UO22oPPP2U[OO[22oWP[U2]*o[O[Q29^tt^2oSFDoV#J	UO2PPP2U[OO[22oUOVu2P!)%fhK�9h)%fhK_9h)c�t�[OOU2%c [OOU2!]o[OU2FDUvq#oSFDHo[OOV%2oU[OOU2*
oJJ	JW	U!)�)r�path�isfile�getsize�walk�join)�db_path�
total_size�root�_�	filenames�filename�	file_paths&      r�_calculate_db_size�PAnyDBMTestCase.test_anydbm_reorganize_decreased_size.<locals>._calculate_db_size�s����w�w�~�~�g�&�&��w�w���w�/�/��J�&(�g�g�g�&6�"��� )�H� "�����T� <�I��"�'�'�/�/�)�"<�<�J�!*�'7��rr%rsrti��r&r )rrr'ryrkr(r)rIr7rr�rrQrs�
assertLess)r+r�r"r,�db_keys�size_before�keys_to_delete�
size_afters&       r�%test_anydbm_reorganize_decreased_size�4AnyDBMTestCase.test_anydbm_reorganize_decreased_size�s��	��X�X�f�c�
"�
"�a��1�l�+�+��
�
�R�S��Z�Z��'+�z�z�!�}�v�'=��(�(�7�#�$� ��1�6�6�8�n�G�#�)�������)@�A��!�!3�#�g�,�!�"3�4��
�X�X�f�c�
"�
"�a�#���D�$�
�L�L�N�#�(�������(?�@�
����
�0�-#�
"��#�
"�s)�E.�A)E.�
F�.E>	�7E>	�F	�
F	c��[O[O[2Q2O2P!�r )rrr�fsencoder'r*rAs&r�test_open_with_bytes�#AnyDBMTestCase.test_open_with_bytes�s"��������V�$�c�*�0�0�2rc��[O[O[2Q2O2P!r�)rrr�FakePathr'r*rAs&r�test_open_with_pathlib_path�*AnyDBMTestCase.test_open_with_pathlib_path�s$������#�#�F�+�S�1�7�7�9rc��[O[O[O
[22Q2O2P!r�)rrrr�rr�r'r*rAs&r�!test_open_with_pathlib_path_bytes�0AnyDBMTestCase.test_open_with_pathlib_path_bytes�s-������#�#�B�K�K��$7�8�#�>�D�D�Frc	���UOU2oUOFD;oUOUOU*VOQ2*2J=	P!r1)r:r(r8r))r+r"r7rLs&&  rrJ�AnyDBMTestCase.read_helper�sD������"���:�:�C����T�Z�Z��_�a�
�
�7�0C�.D�E�rc	�*`�[O[Q29^tt^2nUORO	2,2QQ,oSFD
vq#URU$J	UO[RO	22[QU222SFD0vq#UO
UR2UORU*U2J2	UOQR2UO[U1Qk2PPP2P!)%fhP!9h)r c3�6�SF �D
vqUw�	J	P!3hrr)r3r,�vs&  rr4�+AnyDBMTestCase.test_keys.<locals>.<genexpr>�s��a���a�F�Q�a�a�s�rWc�:�RQ*!)rWrrvs�rrw�*AnyDBMTestCase.test_keys.<locals>.<lambda>�s	����&�	r�r^�b�s12345678910s019237410982340912840198242)
rrr'r8r7r6rl�assertNotInrEra)r+rr,r�r!s&   @r�	test_keys�AnyDBMTestCase.test_keys�s����
�X�X�f�c�
"�
"�a����Q�V�V�X�r�*��O�P�A������!������V�A�F�F�H�-�v�5H�a�5H�/H�I�����
�
�a��#�� � ��1��q�)��
���V�Q�'����h�(9�:�#�
"�
"�
"�s�CD�D	�
D	c��[O[Q29^tt^2oUOUO	2,2QQ,oSFD	vq4VAU$J	SFDvq5UOV12J	UO[
U2[
U22UO2UO[
U2]2SFDvq5UOV12J	PPP2P!)%fhP!9h)r r�r�)	rrr'r8r7rlrQ�clearr�)r+r!rr,r�r�s&     r�
test_clear�AnyDBMTestCase.test_clear�s���
�X�X�f�c�
"�
"�a����Q�V�V�X�r�*��O�P�A�����!�������
�
�a�#�����S��V�S��V�,�
�G�G�I����S��V�Q�'����� � ��&��#�
"�
"�
"�s�B>C-�-C>	�6C>	c���UO[[Q[O2UO[mUO[
2[
2P!)rj)�
addCleanup�setattrrrjr>rrrAs&r�setUp�AnyDBMTestCase.setUp�s6�������m�S�_�_�E��+�+������)�*��rr)�__name__�
__module__�__qualname__�__firstlineno__r(r-r:rBrFrMrSrZrbrermrprzr�r�r�r�r�rJr�r�r��__static_attributes__�__classdictcell__��
__classdict__s@rrr/s�����
�*�
�.�
�&�
�&�
�(�
�+�
�E���:�7��(��
����A�
:�#1�J3�:�G�F�
;�
'��rrc��`�\sQs]�snQs\O\QQ5Q2s\O\	QQ5Q2s
\O\	QQ5Q2sQsQ	s
UsP!)
�WhichDBTestCasec
�~�UO[[Q[O2[O
[2o[[O[2U[OU2,o[2FCDoUOo[2U[mUO[Q29^tt^2PPP2SFD-oUOV@OOU22J/	UO[Q29^tt^2oQUQ$UOQU2UOUQ*Q2PPP2SFD-oUOV@OOU22J/	CJ	P!)%fhK�9h)%fhK^9h)rjr �w�1)r�r�rrjrr�r'rr�rr�rrr8�whichdbrl)r+�_bytes_fname�fnamesr>r
r�r"s&      r�test_whichdb�WhichDBTestCase.test_whichdb�s/�������m�S�_�_�E��{�{�6�*���)�,�,�V�4��	� 2� 2�<� @�B��"�n�n�F��?�?�D���$�C�O����V�S�)�)�)���� � ��x�x�'7�'7��'=�>�����V�S�)�)�Q���$���
�
�d�A�&�� � ��4��$�/�*���� � ��x�x�'7�'7��'=�>��#%�*�)��*�)�s$�
F	�%1F,	�F)
�"F)
�,F<
�5F<
zTest requires ndbm)�reasonc��[[Q*Q29^tt^2oUOQ2PPP2[O[2o[[
O[2U[
OU2,oSFD-oUOUOOU22J/	P!)%fhK�9h)z.db�wbsspam)
rr'�writerr�rr�r`rr�)r+r"r�r�r�s&    r�test_whichdb_ndbm�!WhichDBTestCase.test_whichdb_ndbms����&�5�.�$�
'�
'�1�
�G�G�G��(��{�{�6�*���)�,�,�V�4��	� 2� 2�<� @�B���D����d�h�h�.�.�t�4�5��(�
'�s�C�C	�
C	zTest requires dbm.sqlite3c���[O[Q29^tt^2oQUQ$PPP2UOUOO[2Q2P!)%fhKA9h)r �valuerL�dbm.sqlite3)�dbm_sqlite3rr'r8rr�)r+�dbs& r�test_whichdb_sqlite3�$WhichDBTestCase.test_whichdb_sqlite3sO���
�
�f�c�
*�
*�b��B�u�I�+�������)�)�&�1�=�A�+�
*�s�A$�$A4	�-A4	c��[OQ2oUO[29^tt^2oUO	Q2UO2PPP2WO
2UOUOO[2Q2P!)%fhKQ9hWO
2h9h)rzCREATE TABLE dummy(database)r�)
r�
import_module�connectr'�execute�commitr*r8rr�)r+r�cxs&  r� test_whichdb_sqlite3_existing_db�0WhichDBTestCase.test_whichdb_sqlite3_existing_db$s��� �-�-�i�8��	�����(�(�B��
�
�9�:��	�	��)�
�H�H�J�������)�)�&�1�=�A�)�(��
�H�H�J�s(�B4�"B!�B4�!B1	�*B1	�,B4�4Cc�|�UO[2[2[OQ2UmP!�r)r�rrr�import_fresh_modulerrAs&rr��WhichDBTestCase.setUp2s'�����)�*��� �4�4�U�;��rr�)r�r�r�r�r��unittest�
skipUnlessrr�r�r�r�r�r�r�r�s@rr�r��s�����?�2����&:�;�6�<�6�����-H�I�B�J�B�����-H�I�
B�J�
B�<�<rr�:�NN�	TestCase_r>�__main__)�__doc__r�rr�test.supportrrrr�rr�TESTFNrr�r�r'rrrr�TestCaser�rr��suffix�testname�type�globals�mainrrr�<module>r�s��C��
�	�&�"��*�
���
�
��	�����g�y�/�/�	0��
���
F�F�R=<�h�'�'�=<�@�>�C�
�\�\�"�
�F��6�(�#�H��x� .��0A�0A�B� (�#��0�G�I�h��	��z���M�M�O���k	���K������D��s.�C'�C6�'C3�-C3�2C3�6D�<D�D

Youez - 2016 - github.com/yon3zu
LinuXploit