Server IP : 209.38.156.173 / Your IP : 216.73.216.128 [ 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 : /lib/python3/dist-packages/twisted/application/twist/test/__pycache__/ |
Upload File : |
o �b�, � @ s� d Z ddlmZmZ ddlmZmZmZmZm Z m Z ddlZddl mZ ddlmZ ddlmZ ddlmZmZmZmZ dd lmZ dd lmZ ddlmZ dd lmZ ddl m!Z! ddl"m#Z# ddl$m%Z% ddl%m&Z& G dd� dej'j(j)�Z*dS )z2 Tests for L{twisted.application.twist._options}. � )�stderr�stdout)�Callable�Dict�List�Optional�TextIO�TupleN)�version)�reactor)�IReactorCore)�FileLogObserver�LogLevel�jsonFileLogObserver�textFileLogObserver)� UsageError)� MemoryReactor� )� NoSuchReactor)� ExitStatus)� DummyExit)�ServiceMaker)�_options� )�TwistOptionsc @ sJ e Zd ZdZd@dd�Zd@dd�Zd@dd �Zd@d d�Zd@dd �Zd@dd�Z d@dd�Z d@dd�Zd@dd�Zd@dd�Z d@dd�Zdededdfdd�Zd@dd�Zd@d d!�Zd@d"d#�Zd@d$d%�Zd&ed'eegef ddfd(d)�Zd@d*d+�Zd@d,d-�Zd@d.d/�Zd@d0d1�Zd@d2d3�Zd@d4d5�Zd@d6d7�Zd@d8d9�Z d@d:d;�Z!d@d<d=�Z"d@d>d?�Z#dS )A�OptionsTestsz$ Tests for L{TwistOptions}. �returnNc C s t � | _| �td| j� dS )zX Patch L{_twist.exit} so we can capture usage and prevent actual exits. �exitN)r r �patchr ��self� r! �M/usr/lib/python3/dist-packages/twisted/application/twist/test/test_options.py� patchExit$ s zOptionsTests.patchExitc s8 g � _ ddtdtt dtf� fdd� }� �td|� dS ) zZ Patch L{_options.open} so we can capture usage and prevent actual opens. N�name�moder c s( | dkr t d d | ��� j�| |f� tS )N� nocanopen)�OSError�opened�append�NotImplemented)r$ r% r r! r"