| Server IP : 139.59.63.204 / Your IP : 216.73.217.62 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ubuntu-s-1vcpu-1gb-blr1-01 6.8.0-110-generic #110-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 19 15:09:20 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/twisted/test/__pycache__/ |
Upload File : |
�
oj^G � �h � d Z ddlmZ ddlZddlZddlZddlZddlmZ ddl m
Z
ddlmZm
Z
ddlmZ ddlZddlmZ dd lmZ dd
lmZ ddlmZ ddlmZ dd
lmZ ddlmZ G d� de� Z G d� dee� Z G d� de� Z G d� de� Z! G d� de!� Z" G d� de!� Z# G d� de� Z$g d�Z%y)zV
Tests for twisted.python.modules, abstract access to imported or importable
objects.
� )�annotationsN)�PathEntryFinder)�
ModuleType)�Any� Generator)�Protocol)�modules)�
networkString)�FilePath)�namedAny)�TwistedModulesMixin)�zipit)�TestCasec � � e Zd Z dd�Zy)�_SupportsWalkModulesc � � y �N� )�self�importPackagess �;/usr/lib/python3/dist-packages/twisted/test/test_modules.py�walkModulesz _SupportsWalkModules.walkModules s � � � N)r �bool�returnz+Generator[modules.PythonModule, None, None])�__name__�
__module__�__qualname__r r r r r r s � ��"�� 4�r r c �, � e Zd ZdZedf dd�Zy)�TwistedModulesTestCasez/
Base class for L{modules} test cases.
Fc � � |j |�� D ] }|j |k( s�|c S | j d|�d�� y)z�
You don't ever actually want to do this, so it's not in the public
API, but sometimes we want to compare the result of an iterative call
with a lookup call and make sure they're the same for test purposes.
�r zUnable to find module z through iteration.N)r �name�fail)r �modname�wherer �modinfos r �findByIterationz&TwistedModulesTestCase.findByIteration* sK � � �(�(��(�G� �G��|�|�w�&��� �
� � �*�7�+�5H�I�Jr N)r% �strr&