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/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>"