File: //usr/lib/python3/dist-packages/twisted/internet/test/__pycache__/test_gireactor.cpython-310.pyc
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 <