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