| Server IP : 89.117.53.150 / Your IP : 216.73.216.11 Web Server : Apache System : Linux server2.hostofiraq.site 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64 User : iscmbt-kufa-atu ( 1014) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/twisted/test/__pycache__/ |
Upload File : |
o
�b� � @ sV d Z ddlZddlmZ ddlmZ G dd� d�Zdd� Zd d
� ZG dd� de�Z dS )
zt
Tests for miscellaneous behaviors of the top-level L{twisted} package (ie, for
the code in C{twisted/__init__.py}.
� N)�
ModuleType)�TestCasec @ s0 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
S )�SetAsideModulez�
L{SetAsideModule} is a context manager for temporarily removing a module
from C{sys.modules}.
@ivar name: The name of the module to remove.
c C s
|| _ d S �N)�name)�selfr � r �;/usr/lib/python3/dist-packages/twisted/test/test_twisted.py�__init__ s
zSetAsideModule.__init__c s2 � fdd�t tj�� �D �}|D ]}tj|= q|S )z�
Find the given module and all of its hierarchically inferior modules in
C{sys.modules}, remove them from it, and return whatever was found.
c s0 i | ]\}}|� j ks|�� j d �r||�qS )�.)r �
startswith)�.0�
moduleName�module�r r r �
<dictcomp>"