| Server IP : 173.209.174.21 / Your IP : 216.73.216.90 Web Server : Apache/2.4.58 (Ubuntu) System : Linux wcfs-server 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64 User : nodor ( 1000) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /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&