HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3/dist-packages/twisted/trial/test/__pycache__/test_keyboard.cpython-38.pyc
U


W[��@s�dZddlmZmZddlmZddlmZddlmZm	Z	Gdd�dej
�ZGdd	�d	e�ZGd
d�de�Z
Gdd
�d
e�ZdS)z.
Tests for interrupting tests with Control-C.
�)�absolute_import�division)�NativeStringIO)�unittest)�reporter�runnerc@seZdZdd�ZdS)�	TrialTestcCs t�|_t��|_t��|_dS�N)r�outputrZ
TestResultrZ
TestLoader�loader��self�r�B/usr/lib/python3/dist-packages/twisted/trial/test/test_keyboard.py�setUps
zTrialTest.setUpN)�__name__�
__module__�__qualname__rrrrrrsrcs>eZdZGdd�dej�Z�fdd�Zdd�Zdd�Z�Z	S)	�InterruptInTestTestsc@s$eZdZdd�Zdd�Zdd�ZdS)z$InterruptInTestTests.InterruptedTestcCst�dSr	)�KeyboardInterruptrrrr�test_02_raiseInterruptsz;InterruptInTestTests.InterruptedTest.test_02_raiseInterruptcCsdSr	rrrrr�test_01_doNothingsz6InterruptInTestTests.InterruptedTest.test_01_doNothingcCs
dt_dS)NT)r�test_03_doNothing_runrrrr�test_03_doNothingsz6InterruptInTestTests.InterruptedTest.test_03_doNothingN)rrrrrrrrrr�InterruptedTestsrcs(tt|���|j�tj�|_dt_dSr	)�superrrr�	loadClassr�suiterr��	__class__rrr"szInterruptInTestTests.setUpcCs4|�d|j���|�d|jj�|�|jj�dS)N�r)�assertEqualr�countTestCasesr�testsRun�assertFalse�
shouldStoprrrr�test_setUpOK'sz!InterruptInTestTests.test_setUpOKcCsFt�|jg��|j�|�|jj�|�d|jj�|�	t
jd�dS)N�ztest_03_doNothing ran.)r�
TrialSuiter�runr�
assertTruer%r!r#r$rrrrrr�test_interruptInTest,s�z)InterruptInTestTests.test_interruptInTest)
rrrr�TestCaserrr&r+�
__classcell__rrrrrs
rcsBeZdZdZGdd�dej�Z�fdd�Zdd�Zdd	�Z	�Z
S)
�InterruptInSetUpTestsrc@s$eZdZdd�Zdd�Zdd�ZdS)z%InterruptInSetUpTests.InterruptedTestcCstjdkrt�dS�Nr)r.r#rrrrrr8s
z+InterruptInSetUpTests.InterruptedTest.setUpcCstjd7_dS�N�)r.r#rrrr�test_01<sz-InterruptInSetUpTests.InterruptedTest.test_01cCstjd7_dt_dS�Nr1T)r.r#�test_02_runrrrr�test_02?sz-InterruptInSetUpTests.InterruptedTest.test_02N)rrrrr2r5rrrrr7srcs.tt|���|j�tj�|_dt_dt_dS)NFr)	rr.rrrrrr4r#rrrrrCs�zInterruptInSetUpTests.setUpcCsB|�dtj�|�d|j���|�d|jj�|�|jj�dS�Nrr')r!r.r#rr"rr$r%rrrrr&Jsz"InterruptInSetUpTests.test_setUpOKcCsFt�|jg��|j�|�|jj�|�d|jj�|�	t
jd�dS)Nr'�test_02 ran)rr(rr)rr*r%r!r#r$r.r4rrrr�test_interruptInSetUpPs�z+InterruptInSetUpTests.test_interruptInSetUp)rrrr#rr,rrr&r8r-rrrrr.4s
r.csBeZdZdZGdd�dej�Z�fdd�Zdd�Zdd	�Z	�Z
S)
�InterruptInTearDownTestsrc@s$eZdZdd�Zdd�Zdd�ZdS)z(InterruptInTearDownTests.InterruptedTestcCstjdkrt�dSr/)r9r#rrrrr�tearDown\s
z1InterruptInTearDownTests.InterruptedTest.tearDowncCstjd7_dSr0)r9r#rrrrr2`sz0InterruptInTearDownTests.InterruptedTest.test_01cCstjd7_dt_dSr3)r9r#r4rrrrr5csz0InterruptInTearDownTests.InterruptedTest.test_02N)rrrr:r2r5rrrrr[srcs.tt|���|j�tj�|_dt_dt_dS)NrF)	rr9rrrrrr#r4rrrrrgs�zInterruptInTearDownTests.setUpcCsB|�dtj�|�d|j���|�d|jj�|�|jj�dSr6)r!r9r#rr"rr$r%rrrrr&nsz%InterruptInTearDownTests.test_setUpOKcCsFt�|jg��|j�|�d|jj�|�|jj�|�	t
jd�dS)Nr1r7)rr(rr)rr!r#r*r%r$r9r4rrrr�test_interruptInTearDownts�z1InterruptInTearDownTests.test_interruptInTearDown)rrrr#rr,rrr&r;r-rrrrr9Xs
r9N)�__doc__Z
__future__rrZtwisted.python.compatrZ
twisted.trialrrrZSynchronousTestCaserrr.r9rrrr�<module>s$