Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/twisted/internet/test/__pycache__/test_main.cpython-39.pyc
Ðазад
a k�h3 � @ sJ d Z ddlmZ ddlmZ ddlmZ ddlmZ G dd� dej �Z dS ) z% Tests for L{twisted.internet.main}. � )�ReactorAlreadyInstalledError)�installReactor)� NoReactor)�unittestc @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) �InstallReactorTestsz& Tests for L{installReactor}. c C sP t � �6 t� }t|� ddlm} | �||� W d � n1 sB0 Y dS )zN L{installReactor} installs a new reactor if none is present. r )�reactorN)r �objectr Ztwisted.internetr ZassertIs)�selfZ newReactorr � r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/twisted/internet/test/test_main.py�test_installReactor s z'InstallReactorTests.test_installReactorc C sD t � �* tt� � | �ttt� � W d � n1 s60 Y dS )zv If a reactor is already installed, L{installReactor} raises L{ReactorAlreadyInstalledError}. N)r r r ZassertRaisesr �r r r r �test_alreadyInstalled s z)InstallReactorTests.test_alreadyInstalledc C s | � ttt�� dS )zo For backwards compatibility, L{ReactorAlreadyInstalledError} is an L{AssertionError}. N)Z assertTrue� issubclassr �AssertionErrorr r r r �test_errorIsAnAssertionError( s z0InstallReactorTests.test_errorIsAnAssertionErrorN)�__name__� __module__�__qualname__�__doc__r r r r r r r r s r N)r Ztwisted.internet.errorr Ztwisted.internet.mainr Z#twisted.internet.test.modulehelpersr Z twisted.trialr ZSynchronousTestCaser r r r r �<module> s
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка