Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/hyperlink/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

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

G�_�	�@sHddlmZmZmZmZddlmZGdd�de�ZGdd�de�Z	dS)�)�Any�Callable�Optional�Type)�TestCasec@seZdZdZ	ddd�ZdS)�HyperlinkTestCaseznThis type mostly exists to provide a backwards-compatible
    assertRaises method for Python 2.6 testing.
    NcOsNt||�}|dur|S|�||i|��Wd�dS1s wYdS)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�context�r�7/usr/lib/python3/dist-packages/hyperlink/test/common.py�assertRaises
s
"�zHyperlinkTestCase.assertRaises�N)�__name__�
__module__�__qualname__�__doc__rrrrrrs�rc@s(eZdZdZdd�Zdd�Zdd�ZdS)	rzCA context manager used to implement HyperlinkTestCase.assertRaises.cCs||_|j|_dSr)�expected�failureException)r	r�	test_caserrr�__init__2sz_AssertRaisesContext.__init__cCs|Srr)r	rrr�	__enter__7sz_AssertRaisesContext.__enter__cCs:|dur|jj}|�d|f��t||j�sdS||_dS)Nz
%s not raisedFT)rrr�
issubclass�	exception)r	�exc_type�	exc_value�tb�exc_namerrr�__exit__;sz_AssertRaisesContext.__exit__N)rrrrrrr"rrrrr/s
rN)
�typingrrrr�unittestrr�objectrrrrr�<module>s*

Spamworldpro Mini