0x1949 Team - FAZEMRX - MANAGER
Edit File: test_twisted.cpython-310.pyc
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>"