| 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�: � @ sB d Z ddlZddlZddlZddlZzddlmZ W n
ey' dd� ZY nw zddlmZ W n
ey= dd� ZY nw dd l m
Z
G d
d� d�ZG dd
� d
e�ZeG dd� de��Z
eG dd� de��ZG dd� de�ZG dd� de�ZG dd� d�ZG dd� deej�ZG dd� d�ZG dd� dee�ZG dd� dee�ZG d d!� d!ee�ZG d"d#� d#eej�ZG d$d%� d%�ZG d&d'� d'ee�ZG d(d)� d)ee�ZG d*d+� d+ee�ZG d,d-� d-eej�ZG d.d/� d/e�ZeG d0d1� d1e��ZeG d2d3� d3e��Z eG d4d5� d5ee��Z!e
j"G d6d7� d7eej��Z#e$d8k�re�%� dS dS )9zB
Tests for object finalization semantics, as outlined in PEP 442.
� N)�with_tp_delc C s G dd� dt �}|S )Nc @ � e Zd Zdd� ZdS )zwith_tp_del.<locals>.Cc _ � t d��)Nzrequires _testcapi.with_tp_del�� TypeError��cls�args�kwargs� r �-/usr/lib/python3.10/test/test_finalization.py�__new__ � zwith_tp_del.<locals>.C.__new__N��__name__�
__module__�__qualname__r
r r r r �C � r )�object�r r r r r r
s r )�
without_gcc C s G dd� d�}|S )Nc @ r )zwithout_gc.<locals>.Cc _ r )Nzrequires _testcapi.without_gcr r r r r r
r zwithout_gc.<locals>.C.__new__Nr r r r r r r r r r r r r r s r )�supportc @ s^ e Zd ZdZg Zg Zg Zg ZdZdZ e
dd� �Ze
ej
dd� ��Zdd � Zd
d� Zdd
� ZdS )�NonGCSimpleBasezd
The base class for all the objects under test, equipped with various
testing features.
Fr c C s>