| 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 : |
o
�9j�� � @ s� d Z ddlZddlZddlmZ ddlmZ ddlmZ ddl Z ddl
Z
ddlZddlZddl
Z
ddlZddlmZ e�d�jZG dd � d ej�ZG d
d� dej�ZdZG d
d� dej�ZdZdZdZdZdZdZdZdZdZ dZ!dZ"dZ#dZ$dZ%dZ&dZ'dZ(dZ)d Z*d!Z+d"Z,d#Z-d$Z.G d%d&� d&ej�Z/G d'd(� d(�Z0G d)d*� d*e0�Z1G d+d,� d,e1ej�Z2G d-d.� d.e0�Z3G d/d0� d0e3�Z4G d1d2� d2�Z5G d3d4� d4e4�Z6G d5d6� d6e4�Z7G d7d8� d8e6ej�Z8G d9d:� d:e7ej�Z9G d;d<� d<e6ej�Z:G d=d>� d>e7ej�Z;G d?d@� d@e6ej�Z<G dAdB� dBe7ej�Z=G dCdD� dDe6ej�Z>G dEdF� dFe7ej�Z?G dGdH� dHe6ej�Z@G dIdJ� dJe7ej�ZAG dKdL� dLe3�ZBG dMdN� dNeBej�ZCG dOdP� dPeBej�ZDG dQdR� dRej�ZEeFdSk�rhe�G� dS dS )Tz(Test the arraymodule.
Roger E. Masse
� N)�support)� os_helper)�_2G)�_array_reconstructor�uc @ s e Zd ZdS )�
ArraySubclassN)�__name__�
__module__�__qualname__� r r �&/usr/lib/python3.10/test/test_array.pyr s r c @ s e Zd Zddd�ZdS )�ArraySubclassWithKwargsNc C s t j �| � d S �N)�array�__init__)�self�typecode�newargr r r r � z ArraySubclassWithKwargs.__init__r )r r r
r r r r r r
s r
�
ubBhHiIlLfdqQc @ s@ e Zd Zdd� Zdd� Zejdd� �Zejdd� �Zd d
� Z dS )�MiscTestc C s0 | � t�d�tjj� | � t�d�tjj� d S )N�B)�assertIsInstancer �collections�abc�MutableSequence�
Reversible�r r r r �test_array_is_sequence! s zMiscTest.test_array_is_sequencec C sD | � ttj� | j ttjdd� | � ttjd� | � ttjd� d S )N�* )�spam�xx�x)�assertRaises� TypeErrorr �
ValueErrorr r r r �test_bad_constructor% s zMiscTest.test_bad_constructorc C s$ t � d�}t�| tt|��|� d S )N�I)r r �check_disallow_instantiation�type�iter)r �my_arrayr r r �test_disallow_instantiation+ s
�z$MiscTest.test_disallow_instantiationc C s8 | � t��
dtj_W d � d S 1 sw Y d S �N� )r# r$ r �foor r r r �test_immutable2 s
"�zMiscTest.test_immutablec C sj t � d�}||d d �<