Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/twisted/internet/test/__pycache__/ |
Upload File : |
o �bt � @ s� d Z ddlZddlmZ zddlmZ ddlmZ W n e y' dZdZ Y nw eZzddlm Z W n e y= dZ Y n w eZ ddlmZ ddl mZ dd lmZ dd lmZmZ edu r`dZG dd � d ee�ZG dd� de�ZdS )z GI/GTK3 reactor tests. � N)�skipIf)�Gio)� gireactor)�gtk3reactor)�Gtk)�ReactorAlreadyRunning)�ReactorBuilder)�SkipTest�TestCasezgtk3/gi not importablec @ sV e Zd ZdZdd� Zdd� Zeedu d�dd � �Zd d� Z dd � Z dd� Zdd� ZdS )�GApplicationRegistrationTestsa GtkApplication and GApplication are supported by L{twisted.internet.gtk3reactor} and L{twisted.internet.gireactor}. We inherit from L{ReactorBuilder} in order to use some of its reactor-running infrastructure, but don't need its test-creation functionality. c sr t |d�s td��g �� �fdd��� ��fdd�}|�d|� |�� � �|� t�| � � | ��dd g� d S )z� Register the app, run the reactor, make sure app was activated, and that reactor was running, and that reactor can be stopped. �quitz Version of PyGObject is too old.c s �� d� � �� d S )N�stopped)�append�stop� )�reactor�resultr �F/usr/lib/python3/dist-packages/twisted/internet/test/test_gireactor.pyr <