| 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 : |
R
>lqj� c � � Q s ] PHs] PHs] QHGs ] QHGsGs ] QHG s ] QHG
s
] QHGs ] PH0s] PH4s
] PH8s] PH<s] PH@s] PHDs] PHHs] QHHGs \O* 2 9^tt^ 2 \O, Q\2 \O$ Q2 O0 sPPP2 Q Q
\O$ 2 s Q Q\O$ 2 sQHs Q
Q\O: 2 sPs] s ]s!]s"]s#]s$]s%]s&]s']s(] s)]
s*]s+]s,]
s-]s.]s/]s0]s1]s2]s3]s4]s5]s6]s7]s8]s9]s:]s;]s< Q Q\O: 2 s= Q Q2 s> Q Q\>2 s? Q Q\?\O: 2 s@ Q Q\@2 sA Q Q\>2 sB Q Q\B2 sC Q Q2 sD Q Q \C2 sE Q! Q"\C2 sF Q# Q$\E\O: 2 sG Q% Q&\F\O: 2 sH Q' Q(\E\O: 2 sI Q) Q*\F\O: 2 sJ Q+ Q,\E\O: 2 sK Q- Q.\F\O: 2 sL Q/ Q0\E\O: 2 sM Q1 Q2\F\O: 2 sN Q3 Q4\E\O: 2 sO Q5 Q6\F\O: 2 sP Q7 Q8\B2 sQ Q9 Q:\B2 sR Q; Q<\Q\O: 2 sS Q= Q>\Q\O: 2 sT Q? Q@\Q\O: 2 sU QA QB\R\O: 2 sV QC QD\R\O: 2 sW QE QF\O: 2 sX\YQG6X c \O� 2 P! P! ) % f h CK�9 h)Iz%Test the arraymodule.
Roger E. Masse
)�support)�
import_helper�
script_helper)� os_helper)�_2G)�subTests)�_array_reconstructor�ignore�uc � � \ sQ s]sQsP! )�
ArraySubclass� )�__name__�
__module__�__qualname__�__firstlineno__�__static_attributes__r � �$C:\Python315\\Lib\test\test_array.pyr r s � �r r c �, ` � \ sQ s]s n QQ ksQsU sP! )�ArraySubclassWithKwargsc �F � [ O O U 2 P! �N)�array�__init__)�self�typecode�newargs &&&r r � ArraySubclassWithKwargs.__init__ s � �
�����T�"r r r )r
r r r r r �__classdictcell__��
__classdict__s @r r r s �� � �#� #r r c � ` � \ sQ s]'s n Q sQ sQ s\O Q 2 s \O Q 2 s
\O Q 2 sQ sQ s
Q sQ
sU sP! )�MiscTestc �T � ] QHGo U O [ O U2 P! )� )� ArrayType)r r% �assertIs)r r% s & r �test_array_type_importable�#MiscTest.test_array_type_importable) s � �#��
�
�e�k�k�9�-r c � � U O [ O Q 2 [ O O 2 U O [ O Q 2 [ O O
2 P! )�B)�assertIsInstancer �collections�abc�MutableSequence�
Reversible�r s &r �test_array_is_sequence�MiscTest.test_array_is_sequence. sH � ����e�k�k�#�.����0O�0O�P����e�k�k�#�.����0J�0J�Kr c �z � U O [ [ O 2 U O [ [ O ]*Q5 U O [ [ O Q2 U O [ [ O Q2 U O [ [ O Q2 P! )�* )�spam�xx�x�Z)�assertRaises� TypeErrorr �
ValueErrorr0 s &r �test_bad_constructor�MiscTest.test_bad_constructor2 sq � ����)�U�[�[�1����)�U�[�[�r��:����*�e�k�k�4�8����*�e�k�k�3�7����*�e�k�k�3�7r c �: � Q o[ O QU2 P! )a< if 1:
import collections.abc
del collections.abc.MutableSequence
try:
import array # it used to crash before
except AttributeError:
pass
else:
raise AssertionError('AttributeError was not raised')
z-c)r �assert_python_ok)r �codes & r �%test_does_not_crash_on_broken_imports�.MiscTest.test_does_not_crash_on_broken_imports9 s � ��� �&�&�t�T�2r c � � [ O Q 2 o[ O U [ [ U2 2 U2 P! )�I)r r �check_disallow_instantiation�type�iter)r �my_arrays & r �test_disallow_instantiation�$MiscTest.test_disallow_instantiationJ s. � ��;�;�s�#���,�,��$�t�H�~�&��
r c � � U O [ 2 9^tt^ 2 ][ O m PPP2 P! ) % f h P! 9 h�� )r9 r: r �foor0 s &r �test_immutable�MiscTest.test_immutableQ s/ � � �
�
�y�
)�
)��E�K�K�O� *�
)�
)�
)�s �?�A �A c �> � [ O Q 2 oVQ$ U O [ U2 ] 2 U O [ V* 2 ] 2 U O [ U]* 2 ] 2 V*
oU O [ U2 ] 2 P! )r* �NNN)r �assertEqual�len�r �as & r �
test_empty�MiscTest.test_emptyW st � ��K�K�����!������Q���#�����Q�U��Q�'�����Q��U��Q�'� �������Q���#r c � � Q Q2 oQF D� oU O UQ5 9^tt^ 2 , oUO U U2 2 [ O U2 oU O [ 2 9^tt^ 2 UO U2 PPP2 PPP2 J� P! ) % f h K9 h ) % f h J� 9 h)c �. ` � \ sQ s]cs n Q sQ sQsU sP! )�=MiscTest.test_fromlist_reentrant_index_mutation.<locals>.Evilc � � Vm P! r ��lst)r r^ s &&r r �FMiscTest.test_fromlist_reentrant_index_mutation.<locals>.Evil.__init__d s � ��r c �<