| Server IP : 138.197.176.125 / Your IP : 216.73.217.54 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/twisted/internet/test/__pycache__/ |
Upload File : |
U
W[R# � @ sX d Z ddlmZmZmZ ddlZddlZzddlmZ ddl m
Z
W n ek
r` dZdZY n8X zddlmZ W n ek
r� dZY nX ddl m
Z
ddlmZ dd lmZ dd
lmZ ddlmZ ddlmZ dd
lmZmZ ddlmZ ddlmZ ddlm Z ddl!m"Z" edk�r"dZ#G dd� dee�Z$G dd� de�Z%G dd� de�Z&dS )z
GI/GTK3 reactor tests.
� )�division�absolute_import�print_functionN)� gireactor)�Gio)�gtk3reactor)�Gtk)�FilePath)�platform)�Deferred)�ReactorAlreadyRunning)�ProcessProtocol)�TestCase�SkipTest)�ReactorBuilder)�SetAsideModule)�IReactorProcess)�_PY3zgtk3/gi not importablec @ sV e Zd ZdZdd� Zdd� Zdd� Zedkr2d e_d
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�std��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 >