Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.12/test/test_unittest/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.12/test/test_unittest/__pycache__/test_runner.cpython-312.opt-1.pyc

�

*ΜgZ�����ddlZddlZddlZddlZddlZddlmZddlZddlm	Z	ddl
mZmZm
Z
d�Zd�ZGd�de�Zed	k7red
znd�d�Zd�Zdd
�ZGd�d�ZGd�d�ZGd�d�ZGd�d�ZGd�dej4�ZGd�dej4�ZGd�dej4�ZGd�dej4�Zed	k(rej>�yy)�N)�support)�_Outcome)�BufferedWriter�
LoggingResult�#ResultWithNoStartTestRunStopTestRunc�*�tj�S�N)�unittest�
TestResult)�_s �;/usr/local/lib/python3.12/test/test_unittest/test_runner.py�
resultFactoryrs����� � �c�\�tjttj���S)N)�resultclass�stream)r
�TextTestRunnerr�io�StringIO�rr
�	getRunnerrs ���"�"�}�*,�+�+�-�9�9rc��eZdZy)�CustomErrorN��__name__�
__module__�__qualname__rrr
rr���rr�__main__�.�c��tj�}|D]2}tjj|�}|j	|��4t�}tj�}|j
|�|j
tj��|j
tj��|j|�Sr	)r
�	TestSuite�defaultTestLoader�loadTestsFromTestCase�addTestsr�addTest�run)�cases�suite�case�tests�runner�	realSuites      r
�runTestsr/"s������ �E����*�*�@�@��F��
���u����[�F��"�"�$�I�
���e��	�M�M�(�$�$�&�'�
���h�(�(�*�+��:�:�i� � rc�b�|s|jd�y|jd�td��)N�cleanup_good�cleanup_exc�
CleanUpExc��appendr)�ordering�blowUps  r
�cleanupr83s(�������'����
�&��,�'�'rc� �eZdZdd�Zd�Zd�Zy)�TestCMNc� �||_||_yr	)r6�enter_result)�selfr6r<s   r
�__init__zTestCM.__init__<s�� ��
�(��rc�P�|jjd�|jS)N�enter)r6r5r<�r=s r
�	__enter__zTestCM.__enter__@s ���
�
���W�%�� � � rc�:�|jjd�y)N�exit)r6r5�r=�exc_infos  r
�__exit__zTestCM.__exit__Ds���
�
���V�$rr	)rrrr>rBrGrrr
r:r:;s��)�!�%rr:c��eZdZy)�LacksEnterAndExitNrrrr
rIrIHrrrIc��eZdZd�Zy)�
LacksEnterc��yr	rrEs  r
rGzLacksEnter.__exit__K���rN)rrrrGrrr
rKrKJ���
rrKc��eZdZd�Zy)�	LacksExitc��yr	rrAs r
rBzLacksExit.__enter__NrMrN)rrrrBrrr
rPrPMrNrrPc�0�eZdZd�Zd�Zd�Zd�Zd�Zd�Zy)�TestCleanUpc
����Gd�dtj�}|d�}|j|jg�g��fd�}�fd�}|j	|dddd	d
��|j	|�|j|j|dtd	d
��f|d
ifg�|j
|j��|j�dd
ifddtd	d
��fg�y)Nc��eZdZd�Zy)�-TestCleanUp.testCleanUp.<locals>.TestableTestc��yr	rrAs r
�testNothingz9TestCleanUp.testCleanUp.<locals>.TestableTest.testNothingU���rN�rrrrXrrr
�TestableTestrVT���
rr[rXc�.���jd||f�y�N��r5��args�kwargs�cleanupss  �r
�cleanup1z)TestCleanUp.testCleanUp.<locals>.cleanup1]�����O�O�Q��f�-�.rc�.���jd||f�y)N�r`ras  �r
�cleanup2z)TestCleanUp.testCleanUp.<locals>.cleanup2`rfrr_rh��hello�goodbye��four�five�r_rhrjr)r
�TestCase�assertEqual�	_cleanups�
addCleanup�dict�
assertTrue�
doCleanups)r=r[�testrerirds     @r
�testCleanUpzTestCleanUp.testCleanUpSs����	�8�,�,�	��M�*���������,���	/�	/�	
����!�Q���i��H�����!�������#�Y��'�	�0R�S�#�R��,�.�	/�	
������)�*�����Q��B�K�!�Y��'�Xa�@b�1c�#d�erc��
��Gd�dtj�}|d�}tj�}t|��x}|_td��
td���
fd�}�fd�}|j
|�|j
|�|j|j��|j|j�|j\\}}\}}	|jd	|	�|jd
|	�|jt�d�|	�|jd|�|jd
|�|jt�d�|�y)Nc��eZdZd�Zy)�7TestCleanUp.testCleanUpWithErrors.<locals>.TestableTestc��yr	rrAs r
rXzCTestCleanUp.testCleanUpWithErrors.<locals>.TestableTest.testNothingorYrNrZrrr
r[r|nr\rr[rX��result�foo�barc�����r	r)r3s�r
rez3TestCleanUp.testCleanUpWithErrors.<locals>.cleanup1xs	����rc�����r	r)�exc2s�r
riz3TestCleanUp.testCleanUpWithErrors.<locals>.cleanup2{s����Jrzin cleanup1zraise CleanUpExcz: foozin cleanup2z
raise exc2z: bar)
r
rqrr�_outcomerrt�assertFalserw�success�errors�assertIn�CustomErrorRepr)r=r[rxr�outcomererir�msg2�msg1r3r�s          @@r
�testCleanUpWithErrorsz!TestCleanUp.testCleanUpWithErrorsms���	�8�,�,�	��M�*���$�$�&��"*�&�"9�9��$�-� ��'�
��5�!��	�	�	
����!�����!�������*�+�������)�%�}�}��	��D�9�A�t��
�
�m�T�*��
�
�(�$�/��
�
��)��/��6��
�
�m�T�*��
�
�l�D�)��
�
��)��/��6rc�������	�d�g�G�����	fd�dtj�}|d��	�fd�}�fd���fd���	j|����	fd�}tj�}||_�	j|��j
�gd	��d
�g�|d��	�	j|��	j|��j
�gd��y)NFc�6��eZdZ����fd�Z���fd�Z�fd�Zy)�2TestCleanUp.testCleanupInRun.<locals>.TestableTestc�d���jd��j���rtd��y)N�setUpr�)r5rtr)r=r7rir6rxs ����r
r�z8TestCleanUp.testCleanupInRun.<locals>.TestableTest.setUp�s.�������(�����)��%�e�,�,�rc�J���jd��j��y�Nrx�r5rt)r=�cleanup3r6rxs ���r
rXz>TestCleanUp.testCleanupInRun.<locals>.TestableTest.testNothing���������'�����)rc�(���jd�y�N�tearDownr`�r=r6s �r
r�z;TestCleanUp.testCleanupInRun.<locals>.TestableTest.tearDown��������
�+rN�rrrr�rXr�)r7rir�r6rxs�����r
r[r��s���
-�
*�
,rr[rXc�(���jd�y�Nrer`�r6s�r
rez.TestCleanUp.testCleanupInRun.<locals>.cleanup1������O�O�J�'rc�(���jd�y�Nrir`r�s�r
riz.TestCleanUp.testCleanupInRun.<locals>.cleanup2�r�rc�(���jd�y�Nr�r`r�s�r
r�z.TestCleanUp.testCleanupInRun.<locals>.cleanup3�r�rc�L���j|���jd�y)Nr�)rrr5)�	some_testr6r=rxs ���r
r�z-TestCleanUp.testCleanupInRun.<locals>.success�s������Y��-��O�O�I�&r)r�rxr�r�rirer�T)r�rire)r
rqrtr�
addSuccessr(rr)
r=r[rer�rr7rir�r6rxs
`    @@@@@r
�testCleanupInRunzTestCleanUp.testCleanupInRun�s��������	,�	,�8�,�,�	,��M�*��	(�	(�	(�����!�	'��$�$�&��#������������$G�	H������M�*������!����������#D�Erc���������g�G�����fd�dtj�}|d�����fd���fd���fd���fd���j�|j�gd��y)	Nc�4��eZdZ��fd�Z��fd�Z���fd�Zy)�CTestCleanUp.testTestCaseDebugExecutesCleanups.<locals>.TestableTestc�J���jd�|j��y�Nr�r�)r=rer6s ��r
r�zITestCleanUp.testTestCaseDebugExecutesCleanups.<locals>.TestableTest.setUp���������(�����)rc�J���jd�|j��yr�r��r=r�r6s ��r
rXzOTestCleanUp.testTestCaseDebugExecutesCleanups.<locals>.TestableTest.testNothing�r�rc�J���jd��j��yr�r�)r=�cleanup4r6rxs ���r
r�zLTestCleanUp.testTestCaseDebugExecutesCleanups.<locals>.TestableTest.tearDown�s������
�+�����)rNr�)rer�r�r6rxs�����r
r[r��s���
*�
*�
*rr[rXc�J���jd��j��yr�r�)rir6rxs���r
rez?TestCleanUp.testTestCaseDebugExecutesCleanups.<locals>.cleanup1�s����O�O�J�'��O�O�H�%rc�(���jd�yr�r`r�s�r
riz?TestCleanUp.testTestCaseDebugExecutesCleanups.<locals>.cleanup2�r�rc�(���jd�yr�r`r�s�r
r�z?TestCleanUp.testTestCaseDebugExecutesCleanups.<locals>.cleanup3�r�rc�(���jd�y)Nr�r`r�s�r
r�z?TestCleanUp.testTestCaseDebugExecutesCleanups.<locals>.cleanup4�r�r)r�rxr�r�r�reri)r
rq�debugrr)r=r[rerir�r�r6rxs  @@@@@@r
�!testTestCaseDebugExecutesCleanupsz-TestCleanUp.testTestCaseDebugExecutesCleanups�sa�����	*�	*�8�,�,�	*��M�*��	&�	(�	(�	(�	
�
�
������$H�	Irc�z�Gd�dtj�}|d�}g}|j|jd�t	|d�}|j|j
|�d�|j|jd�|j|j��|j|gd��y)Nc��eZdZd�Zy)�3TestCleanUp.test_enterContext.<locals>.TestableTestc��yr	rrAs r
rXz?TestCleanUp.test_enterContext.<locals>.TestableTest.testNothing�rYrNrZrrr
r[r��r\rr[rXre�*ri�r@rirDre)	r
rqrtr5r:rr�enterContextrvrw)r=r[rxrd�cms     r
�test_enterContextzTestCleanUp.test_enterContext�s���	�8�,�,�	��M�*�����������4�
�H�b�
!������*�*�2�.��3��������4�������)�*�����#L�Mrc��Gd�dtj�}|d�}|jtd�5|j	t��ddd�|jtd�5|j	t
��ddd�|jtd�5|j	t��ddd�|j|jg�y#1swY��xYw#1swY�jxYw#1swY�>xYw)Nc��eZdZd�Zy)�>TestCleanUp.test_enterContext_arg_errors.<locals>.TestableTestc��yr	rrAs r
rXzJTestCleanUp.test_enterContext_arg_errors.<locals>.TestableTest.testNothing�rYrNrZrrr
r[r��r\rr[rX�the context manager)
r
rq�assertRaisesRegex�	TypeErrorr�rIrKrPrrrs)r=r[rxs   r
�test_enterContext_arg_errorsz(TestCleanUp.test_enterContext_arg_errors�s���	�8�,�,�	��M�*��
�
#�
#�I�/D�
E����/�1�2�F�
�
#�
#�I�/D�
E����j�l�+�F�
�
#�
#�I�/D�
E����i�k�*�F�	
�������,�F�
E��
E�
E��
E�
E�s#�C'�0C3�(C?�'C0�3C<�?DN)	rrrryr�r�r�r�r�rrr
rSrSRs&��f�47�>,F�\I�BN� -rrSc�`�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zy)�TestClassCleanupc
���Gd�dtj�}|d�}|j|jg�g��fd�}�fd�}|j	|dddd	d
��|j	|�|j|j|dtd	d
��f|d
ifg�|j
�|j�dd
ifddtd	d
��fg�y)Nc��eZdZd�Zy)�;TestClassCleanup.test_addClassCleanUp.<locals>.TestableTestc��yr	rrAs r
rXzGTestClassCleanup.test_addClassCleanUp.<locals>.TestableTest.testNothing�rYrNrZrrr
r[r��r\rr[rXc�.���jd||f�y�Nrjr`�rbrc�class_cleanupss  �r
�class_cleanup1z=TestClassCleanup.test_addClassCleanUp.<locals>.class_cleanup1�����!�!�1�d�F�"3�4rc�.���jd||f�y�N�r`r�s  �r
�class_cleanup2z=TestClassCleanup.test_addClassCleanUp.<locals>.class_cleanup2r�rr_rhrjrkrlrmrprr�)r
rqrr�_class_cleanups�addClassCleanupru�doClassCleanups)r=r[rxr�r�r�s     @r
�test_addClassCleanUpz%TestClassCleanup.test_addClassCleanUp�s����	�8�,�,�	��M�*������-�-�r�2���	5�	5�	�$�$�^�Q��1�*1�	�	%�	C��$�$�^�4�����-�-�)�9��W�9�=�?�)�2�r�2�4�	5�
	�$�$�&�����1�b�"�+��9�*.�G�)�*L�8N�*O�	Prc�����g�d�G��fd�dtj�}t|�|j�ddg�g�d�t|�|j�gd��y)NTc�B��eZdZe��fd��Z�fd�Ze�fd��Zy)�=TestClassCleanup.test_run_class_cleanUp.<locals>.TestableTestc�l���jd�|jt���r
t��y�N�
setUpClass�r5r�r8r��clsr7r6s ��r
r�zHTestClassCleanup.test_run_class_cleanUp.<locals>.TestableTest.setUpClass�/�������-��#�#�G�X�6��%�-�'�rc�(���jd�yr�r`r�s �r
rXzITestClassCleanup.test_run_class_cleanUp.<locals>.TestableTest.testNothing#��������'rc�(���jd�y�N�
tearDownClassr`�r�r6s �r
r�zKTestClassCleanup.test_run_class_cleanUp.<locals>.TestableTest.tearDownClass%��������0rN�rrr�classmethodr�rXr��r7r6s��r
r[r�s,���
�
(��
(�

(�
�
1��
1rr[r�r1F�r�rxr�r1�r
rqr/rr�r=r[r7r6s  @@r
�test_run_class_cleanUpz'TestClassCleanup.test_run_class_cleanUpsd�������	1�8�,�,�	1�	�������L�.�#A�B������������P�	Rrc�����g�d�G��fd�dtj�}t|�|j�ddg�g�d�t|�|j�gd��y)NTc�H��eZdZe��fd��Z�fd�Zeed���Zy)�STestClassCleanup.test_run_class_cleanUp_without_tearDownClass.<locals>.TestableTestc�l���jd�|jt���r
t��yr�r�r�s ��r
r�z^TestClassCleanup.test_run_class_cleanUp_without_tearDownClass.<locals>.TestableTest.setUpClass7r�rc�(���jd�yr�r`r�s �r
rXz_TestClassCleanup.test_run_class_cleanUp_without_tearDownClass.<locals>.TestableTest.testNothing=r�rc��t�r	)�AttributeError)r�s r
r�zaTestClassCleanup.test_run_class_cleanUp_without_tearDownClass.<locals>.TestableTest.tearDownClass?s
��%�$rN)rrrr�r�rX�propertyr�r�s��r
r[r�6s4���
�
(��
(�

(�
�
�
%���
%rr[r�r1F)r�rxr1r�r�s  @@r
�,test_run_class_cleanUp_without_tearDownClassz=TestClassCleanup.test_run_class_cleanUp_without_tearDownClass2sd�������	%�8�,�,�	%�	�������L�.�#A�B������������?�	Arc����g�d�G��fd�dtj�}tjj|�}|j	�|j�gd��g�d�tjj|�}|j
t�5}|j	�ddd�|jtj�d�|j�gd��y#1swY�CxYw)NFc�B��eZdZe��fd��Z�fd�Ze�fd��Zy)�GTestClassCleanup.test_debug_executes_classCleanUp.<locals>.TestableTestc�X���jd�|jt����y�Nr��r7�r5r�r8r�s ��r
r�zRTestClassCleanup.test_debug_executes_classCleanUp.<locals>.TestableTest.setUpClassR�$�������-��#�#�G�X�f�#�Erc�(���jd�yr�r`r�s �r
rXzSTestClassCleanup.test_debug_executes_classCleanUp.<locals>.TestableTest.testNothingVr�rc�(���jd�yr�r`r�s �r
r�zUTestClassCleanup.test_debug_executes_classCleanUp.<locals>.TestableTest.tearDownClassXr�rNr�r�s��r
r[rQs.���
�
F��
F�
(�
�
1��
1rr[r�Tr3)r�rxr�r2)
r
rqr$r%r�rr�assertRaisesr�str�	exception�r=r[r*r�r7r6s    @@r
� test_debug_executes_classCleanUpz1TestClassCleanup.test_debug_executes_classCleanUpMs��������		1�8�,�,�		1��*�*�@�@��N��
���
�����P�	R������*�*�@�@��N��
�
�
�{�
+�r��K�K�M�,�����R�\�\�*�L�9�����O�	Q�,�
+�s�C1�1C:c�n���g�d�G��fd�dtj�}tjj|�}|j	t
�5}|j
�ddd�|jtj�d�|j�gd��|j|j�|jj�g�d�tjj|�}|j	t
�5}|j
�ddd�|jt|j�d�|j�gd��|j|j�|jj�y#1swY��8xYw#1swY��xYw)NFc�B��eZdZe��fd��Z�fd�Ze�fd��Zy)�_TestClassCleanup.test_debug_executes_classCleanUp_when_teardown_exception.<locals>.TestableTestc�X���jd�|jt����yrrr�s ��r
r�zjTestClassCleanup.test_debug_executes_classCleanUp_when_teardown_exception.<locals>.TestableTest.setUpClassorrc�(���jd�yr�r`r�s �r
rXzkTestClassCleanup.test_debug_executes_classCleanUp_when_teardown_exception.<locals>.TestableTest.testNothingsr�rc�<���jd�td��)Nr��TearDownClassExcr4r�s �r
r�zmTestClassCleanup.test_debug_executes_classCleanUp_when_teardown_exception.<locals>.TestableTest.tearDownClassus�������0�!�"4�5�5rNr�r�s��r
r[rns.���
�
F��
F�
(�
�
6��
6rr[r)r�rxr�T)
r
rqr$r%rrr�rrrr
rvr��clearrs    @@r
�8test_debug_executes_classCleanUp_when_teardown_exceptionzITestClassCleanup.test_debug_executes_classCleanUp_when_teardown_exceptionjsC�������
	6�8�,�,�
	6��*�*�@�@��N��
�
�
�{�
+�r��K�K�M�,�����R�\�\�*�,>�?�����#J�K�����4�4�5��$�$�*�*�,������*�*�@�@��N��
�
�
�{�
+�r��K�K�M�,�����R�\�\�*�,>�?�����#J�K�����4�4�5��$�$�*�*�,�,�
+��,�
+�s�F�F+�F(�+F4c���Gd�dtj�}d�}d�}|j|�|j|�|j�|j	t|j�d�|j\}}|j|dt�|j	t|d�d�|j|dt�|j	t|d�d�y)	Nc��eZdZd�Zy)�WTestClassCleanup.test_doClassCleanups_with_errors_addClassCleanUp.<locals>.TestableTestc��yr	rrAs r
rXzcTestClassCleanup.test_doClassCleanups_with_errors_addClassCleanUp.<locals>.TestableTest.testNothing�rYrNrZrrr
r[r�r\rr[c��td��r��rrrr
rezSTestClassCleanup.test_doClassCleanups_with_errors_addClassCleanUp.<locals>.cleanup1��
���j�)�)rc��td��r�rrrr
rizSTestClassCleanup.test_doClassCleanups_with_errors_addClassCleanUp.<locals>.cleanup2�rrrhr_rire)
r
rqr�r�rr�len�tearDown_exceptions�assertIsInstancerr)r=r[reri�e1�e2s      r
�0test_doClassCleanups_with_errors_addClassCleanUpzATestClassCleanup.test_doClassCleanups_with_errors_addClassCleanUp�s���	�8�,�,�	�	*�	*�	�$�$�X�.��$�$�X�.��$�$�&�����\�=�=�>��B��1�1���B����b��e�[�1�����R��U��Z�0����b��e�[�1�����R��U��Z�0rc����g�G�fd�dtj�}t|�}|j|jddj�dt�d��|j�gd��y)Nc�F��eZdZe�fd��Z�fd�Zd�Ze�fd��Zy)�BTestClassCleanup.test_with_errors_addCleanUp.<locals>.TestableTestc�T���jd�|jt��yr�rr�s �r
r�zMTestClassCleanup.test_with_errors_addCleanUp.<locals>.TestableTest.setUpClass���������-��#�#�G�X�6rc�X���jd�|jt�d��y�Nr�Tr�r5rtr8r�s �r
r�zHTestClassCleanup.test_with_errors_addCleanUp.<locals>.TestableTest.setUp��!�������(������$��?rc��yr	rrAs r
rXzNTestClassCleanup.test_with_errors_addCleanUp.<locals>.TestableTest.testNothing�rYrc�(���jd�yr�r`r�s �r
r�zPTestClassCleanup.test_with_errors_addCleanUp.<locals>.TestableTest.tearDownClass�r�rN�rrrr�r�r�rXr�r�s�r
r[r)�s2���
�
7��
7�
@�
�
�
1��
1rr[rr_����: CleanUpExc)r�r�r2r�r1�r
rqr/rrr��
splitlinesr��r=r[rr6s   @r
�test_with_errors_addCleanUpz,TestClassCleanup.test_with_errors_addCleanUp�sr�����	1�8�,�,�	1��,�'��������q�)�!�,�7�7�9�"�=�+�,�L�9�	;�����;�	<rc����g�G�fd�dtj�}t|�}|j|jddj�dt�d��|j�gd��y)Nc�J��eZdZe�fd��Z�fd�Z�fd�Ze�fd��Zy)�KTestClassCleanup.test_run_with_errors_addClassCleanUp.<locals>.TestableTestc�X���jd�|jt�d��y�Nr�Trrr�s �r
r�zVTestClassCleanup.test_run_with_errors_addClassCleanUp.<locals>.TestableTest.setUpClass��$�������-��#�#�G�X�d�#�Crc�T���jd�|jt��yr�r.r�s �r
r�zQTestClassCleanup.test_run_with_errors_addClassCleanUp.<locals>.TestableTest.setUp�s�������(������2rc�(���jd�yr�r`r�s �r
rXzWTestClassCleanup.test_run_with_errors_addClassCleanUp.<locals>.TestableTest.testNothing�r�rc�(���jd�yr�r`r�s �r
r�zYTestClassCleanup.test_run_with_errors_addClassCleanUp.<locals>.TestableTest.tearDownClass�r�rNr2r�s�r
r[r;�s3���
�
D��
D�
3�
(�
�
1��
1rr[rr_r3r4)r�r�rxr1r�r2r5r7s   @r
�$test_run_with_errors_addClassCleanUpz5TestClassCleanup.test_run_with_errors_addClassCleanUp�sr�����	1�8�,�,�	1��,�'��������q�)�!�,�7�7�9�"�=�+�,�L�9�	;�����:�	;rc�f����g�d�d�G���fd�dtj�}t|�}|j|jddj�dt�d��|j�gd��g�d	�d�t|�}|j|jddj�dt�d
��|j|jddj�dt�d��|j�ddg�g�d�d	�t|�}|j|jddj�dt�d
��|j|jddj�dt�d��|j�gd��y)NFc�N��eZdZe��fd��Z��fd�Z�fd�Ze�fd��Zy)�UTestClassCleanup.test_with_errors_in_addClassCleanup_and_setUps.<locals>.TestableTestc�r���jd�|jt�d���rtd��y)Nr�Tr�ClassExcr��r��
class_blow_upr6s ��r
r�z`TestClassCleanup.test_with_errors_in_addClassCleanup_and_setUps.<locals>.TestableTest.setUpClass�s7�������-��#�#�G�X�d�#�C� �%�j�1�1�!rc�B���jd��rtd��y�Nr��	MethodExcr4�r=�method_blow_upr6s ��r
r�z[TestClassCleanup.test_with_errors_in_addClassCleanup_and_setUps.<locals>.TestableTest.setUp��"�������(�!�%�k�2�2�"rc�(���jd�yr�r`r�s �r
rXzaTestClassCleanup.test_with_errors_in_addClassCleanup_and_setUps.<locals>.TestableTest.testNothing�r�rc�(���jd�yr�r`r�s �r
r�zcTestClassCleanup.test_with_errors_in_addClassCleanup_and_setUps.<locals>.TestableTest.tearDownClass�r�rNr2�rIrNr6s���r
r[rE�s1���
�
2��
2�

3�
(�
�
1��
1rr[rr_r3r4)r�r�rxr�r2T�
: ClassExcr�r2�: MethodExc)r�r�r�r2r5)r=r[rrIrNr6s   @@@r
�.test_with_errors_in_addClassCleanup_and_setUpsz?TestClassCleanup.test_with_errors_in_addClassCleanup_and_setUps�s�������
���	1�	1�8�,�,�	1�"�,�'��������q�)�!�,�7�7�9�"�=�+�,�L�9�	;�����:�	;����
����,�'��������q�)�!�,�7�7�9�"�=�+�,�J�7�	9�������q�)�!�,�7�7�9�"�=�+�,�L�9�	;�����&�
�6�	8����
����,�'��������q�)�!�,�7�7�9�"�=�+�,�K�8�	:�������q�)�!�,�7�7�9�"�=�+�,�L�9�	;�����)�	*rc����g�G�fd�dtj�}t|�}|j|jddj�dt�d��|j�gd��y)Nc�@��eZdZe�fd��Z�fd�Ze�fd��Zy)�HTestClassCleanup.test_with_errors_in_tearDownClass.<locals>.TestableTestc�T���jd�|jt��yr�rr�s �r
r�zSTestClassCleanup.test_with_errors_in_tearDownClass.<locals>.TestableTest.setUpClassr+rc�(���jd�yr�r`r�s �r
rXzTTestClassCleanup.test_with_errors_in_tearDownClass.<locals>.TestableTest.testNothingr�rc�<���jd�td��)Nr��TearDownExcr4r�s �r
r�zVTestClassCleanup.test_with_errors_in_tearDownClass.<locals>.TestableTest.tearDownClasss�������0�!�-�0�0rNr�r�s�r
r[rXs,���
�
7��
7�
(�
�
1��
1rr[rr_r3z
: TearDownExcr�r5r7s   @r
�!test_with_errors_in_tearDownClassz2TestClassCleanup.test_with_errors_in_tearDownClasssq�����
	1�8�,�,�
	1��,�'��������q�)�!�,�7�7�9�"�=�+�,�M�:�	<�����P�	Rrc�L�Gd�dtj�}g}|j|jd�t	|d�}|j|j
|�d�|j|jd�|j�|j|gd��y)Nc��eZdZd�Zy)�=TestClassCleanup.test_enterClassContext.<locals>.TestableTestc��yr	rrAs r
rXzITestClassCleanup.test_enterClassContext.<locals>.TestableTest.testNothingrYrNrZrrr
r[r`r\rr[rer�rir�)r
rqr�r5r:rr�enterClassContextr�)r=r[rdr�s    r
�test_enterClassContextz'TestClassCleanup.test_enterClassContexts���	�8�,�,�	����$�$�X�_�_�j�A�
�H�b�
!������7�7��;�R�@��$�$�X�_�_�j�A��$�$�&�����#L�Mrc��Gd�dtj�}|jtd�5|j	t��ddd�|jtd�5|j	t
��ddd�|jtd�5|j	t��ddd�|j|jg�y#1swY��xYw#1swY�jxYw#1swY�>xYw)Nc��eZdZd�Zy)�HTestClassCleanup.test_enterClassContext_arg_errors.<locals>.TestableTestc��yr	rrAs r
rXzTTestClassCleanup.test_enterClassContext_arg_errors.<locals>.TestableTest.testNothing*rYrNrZrrr
r[rf)r\rr[r�)
r
rqr�r�rbrIrKrPrrr��r=r[s  r
�!test_enterClassContext_arg_errorsz2TestClassCleanup.test_enterClassContext_arg_errors(s���	�8�,�,�	��
#�
#�I�/D�
E��*�*�+<�+>�?�F�
�
#�
#�I�/D�
E��*�*�:�<�8�F�
�
#�
#�I�/D�
E��*�*�9�;�7�F�	
����5�5�r�:�F�
E��
E�
E��
E�
E�s#�C�(C+� C7�C(�+C4�7Dc����g�G�fd�dtj��G��fd�dtj�}t|�|j�gd��y)Nc�,��eZdZe�fd��Z�fd�Zy)�8TestClassCleanup.test_run_nested_test.<locals>.InnerTestc�`���jd�|j�jd�y)N�inner setup�
inner cleanup�r5r�r�s �r
r�zCTestClassCleanup.test_run_nested_test.<locals>.InnerTest.setUpClass:�#������
�.��#�#�H�O�O�_�Erc�(���jd�y)N�
inner testr`r�s �r
rxz=TestClassCleanup.test_run_nested_test.<locals>.InnerTest.test>s�������-rN�rrrr�r�rxr�s�r
�	InnerTestrl9s���
�
F��
F�
.rruc�.��eZdZe�fd��Z��fd�Zy)�8TestClassCleanup.test_run_nested_test.<locals>.OuterTestc�`���jd�|j�jd�y)N�outer setup�
outer cleanuprpr�s �r
r�zCTestClassCleanup.test_run_nested_test.<locals>.OuterTest.setUpClassBrqrc�`���jd�t���jd�y)N�start outer test�end outer test)r5r/)r=rur6s ��r
rxz=TestClassCleanup.test_run_nested_test.<locals>.OuterTest.testFs%������ 2�3���#���� 0�1rNrt)rur6s��r
�	OuterTestrwAs���
�
F��
F�
2rr~)ryr|rnrsror}rzr�)r=r~rur6s  @@r
�test_run_nested_testz%TestClassCleanup.test_run_nested_test6sK�����	.��)�)�	.�	2��)�)�	2�	�������$3�	4rc��Gd�dtj�}tjj|�}t	�}|j|�|j
d|jj��y)Nc��eZdZy)�FTestClassCleanup.test_run_empty_suite_error_message.<locals>.EmptyTestNrrrr
�	EmptyTestr�R���rr�z
NO TESTS RAN
)	r
rqr$r%rr(r�r�getvalue)r=r�r*r-s    r
�"test_run_empty_suite_error_messagez3TestClassCleanup.test_run_empty_suite_error_messageQs[��	��)�)�	��*�*�@�@��K������
�
�5���
�
�(�&�-�-�*@�*@�*B�CrN)rrrr�r�rrrr&r8rBrUr]rcrirr�rrr
r�r��sQ��P�6R�4A�6Q�: -�D1�.<�.;�.2*�hR�(
N�;�4�6Drr�c�r�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zy)�TestModuleCleanUpc
�����g��fd���fd��G��fd�dt�}|jtjj�dtdd��f�d	ifg�tjj
�|j�d
d	ifddtdd��fg�|jtjjg�y)Nc�.���jd||f�yr�r`�rbrc�module_cleanupss  �r
�module_cleanup1zHTestModuleCleanUp.test_add_and_do_ModuleCleanup.<locals>.module_cleanup1`�����"�"�A�t�V�#4�5rc�.���jd||f�yr�r`r�s  �r
�module_cleanup2zHTestModuleCleanUp.test_add_and_do_ModuleCleanup.<locals>.module_cleanup2cr�rc�f��eZdZejW�ddddd��ejW��y)�?TestModuleCleanUp.test_add_and_do_ModuleCleanup.<locals>.Moduler_rhrjrkrlrmN�rrrr
�addModuleCleanup)r�r�s��r
�Moduler�fs1���%�H�%�%�o�q�!�Q�+2��
D�%�H�%�%�o�6rr�rprkrlrmrr�rj)�objectrrr
r+�_module_cleanupsru�doModuleCleanups)r=r�r�r�r�s  @@@r
�test_add_and_do_ModuleCleanupz/TestModuleCleanUp.test_add_and_do_ModuleCleanup]s������	6�	6�	7�V�	7�
	
������7�7�*�I��W�9�=�?�*�B��3�5�	6�
	�
�
�&�&�(�����A�r�2�;��I�*.�G�)�*L�9N�+O�	P�������7�7��<rc	������g��fd��d��G��fd�dt�}|jtjj�dtdd��f�d	ifg�|j
t�5}tjj�ddd�|jtj�d
�|jtjjg�y#1swY�YxYw)Nc�.���jd||f�yr�r`r�s  �r
�module_cleanup_goodzcTestModuleCleanUp.test_doModuleCleanup_with_errors_in_addModuleCleanup.<locals>.module_cleanup_goodxr�rc��td��)Nr3r)rbrcs  r
�module_cleanup_badzbTestModuleCleanUp.test_doModuleCleanup_with_errors_in_addModuleCleanup.<locals>.module_cleanup_bad{s
���l�+�+rc�f��eZdZejW�ddddd��ejW��y)�VTestModuleCleanUp.test_doModuleCleanup_with_errors_in_addModuleCleanup.<locals>.Moduler_rhrjrkrlrmNr�)r�r�s��r
r�r�~s3���%�H�%�%�&9�1�a��+2��
D�%�H�%�%�&8�9rr�rprkrlrmrr3)r�rrr
r+r�rurrr�rr
)r=r��er�r�r�s   @@@r
�4test_doModuleCleanup_with_errors_in_addModuleCleanupzFTestModuleCleanUp.test_doModuleCleanup_with_errors_in_addModuleCleanupus������	6�	,�	:�V�	:�	
������7�7�.�	��W�9�=�?�-�r�2�6�8�	9��
�
�{�
+�q��M�M�*�*�,�,�����Q�[�[�)�<�8�������7�7��<�,�
+�s�2C)�)C2c�����g��fd��G��fd�dt�}tjj��j	�dddifg�y)Nc�,���j||f�yr	r`ras  �r
r8zCTestModuleCleanUp.test_addModuleCleanup_arg_errors.<locals>.cleanup������O�O�T�6�N�+rc�$��eZdZejW�ddd��W�je�5ejW�d��ddd�W�je�5ej�ddd�y#1swY�6xYw#1swYyxYw)�BTestModuleCleanUp.test_addModuleCleanup_arg_errors.<locals>.Moduler_rhrk)�function�r��argN)rrrr
r�rr��r8r=s��r
r�r��sr���%�H�%�%�g�q�!�g�F��"�"�9�-�)��)�)�7��H�.��"�"�9�-�)��)�)�+�.�-�.�-��-�-�s�A:�B�:B�Br��r_rhr�rk)r�r
r+r�rr)r=r�r8rds` @@r
� test_addModuleCleanup_arg_errorsz2TestModuleCleanUp.test_addModuleCleanup_arg_errors�sK�����	,�	,�V�	,�	�
�
�&�&�(�����!�J��#8�9�:�	<rc�����d�g�G��fd�dt�}G�fd�dtj�}d|_|tj
d<t
|�}|j�ddg�|j|jdd	j�d
t�d��g�d�t
|�|j�gd
��|jtjjg�y)NTc�8��eZdZe��fd��Ze�fd��Zy)�9TestModuleCleanUp.test_run_module_cleanUp.<locals>.Modulec�v���jd�tjt���rt	d��y)N�setUpModulezsetUpModule Exc�r5r
r�r8rr�s��r
r�zETestModuleCleanUp.test_run_module_cleanUp.<locals>.Module.setUpModule�s3������
�.��)�)�'�8�<��%�&7�8�8�rc�(���jd�y�N�tearDownModuler`r�s�r
r�zHTestModuleCleanUp.test_run_module_cleanUp.<locals>.Module.tearDownModule�������� 0�1rN�rrr�staticmethodr�r�r�s��r
r�r��s)���
�
9��
9�
�
2��
2rr�c�@��eZdZe�fd��Z�fd�Ze�fd��Zy)�?TestModuleCleanUp.test_run_module_cleanUp.<locals>.TestableTestc�(���jd�yr�r`r�s �r
r�zJTestModuleCleanUp.test_run_module_cleanUp.<locals>.TestableTest.setUpClass���������-rc�(���jd�yr�r`r�s �r
rXzKTestModuleCleanUp.test_run_module_cleanUp.<locals>.TestableTest.testNothing�r�rc�(���jd�yr�r`r�s �r
r�zMTestModuleCleanUp.test_run_module_cleanUp.<locals>.TestableTest.tearDownClass�r�rNr�r�s�r
r[r���,���
�
.��
.�
(�
�
1��
1rr[r�r1rr_r3z: setUpModule ExcF�r�r�rxr�r�r1�
r�r
rqr�sys�modulesr/rrr�r6r�r+r�)r=r�r[rr7r6s    @@r
�test_run_module_cleanUpz)TestModuleCleanUp.test_run_module_cleanUp�s��������		2�V�		2�	1�8�,�,�	1�#+��� &����H���,�'������M�>�#B�C�������q�)�!�,�7�7�9�"�=�+�,�,=�>�	@������������<�	=�	
������7�7��<rc�^����d�d�g�G��fd�dt�}G��fd�dt�}G�fd�dtj�}G�fd	�d
tj�}d|_|tj
d<d|_|tj
d<t
||�|j�gd��g�d�d�t
||�|j�gd��g�d�d�t
||�|j�gd
��|jtjjg�y)NTFc�8��eZdZe��fd��Ze�fd��Zy)�CTestModuleCleanUp.test_run_multiple_module_cleanUp.<locals>.Module1c�t���jd�tjt���r
t	��y�Nr�r�r�s��r
r�zOTestModuleCleanUp.test_run_multiple_module_cleanUp.<locals>.Module1.setUpModule�s/������
�.��)�)�'�8�<��%�-�'�rc�(���jd�yr�r`r�s�r
r�zRTestModuleCleanUp.test_run_multiple_module_cleanUp.<locals>.Module1.tearDownModule�r�rNr�r�s��r
�Module1r��s)���
�
(��
(�
�
2��
2rr�c�8��eZdZe��fd��Ze�fd��Zy)�CTestModuleCleanUp.test_run_multiple_module_cleanUp.<locals>.Module2c�t���jd�tjt���r
t	��y)N�setUpModule2r���blowUp2r6s��r
r�zOTestModuleCleanUp.test_run_multiple_module_cleanUp.<locals>.Module2.setUpModule�s/�������/��)�)�'�8�<��%�-�'�rc�(���jd�y)N�tearDownModule2r`r�s�r
r�zRTestModuleCleanUp.test_run_multiple_module_cleanUp.<locals>.Module2.tearDownModule�s������ 1�2rNr�r�s��r
�Module2r��s)���
�
(��
(�
�
3��
3rr�c�@��eZdZe�fd��Z�fd�Ze�fd��Zy)�HTestModuleCleanUp.test_run_multiple_module_cleanUp.<locals>.TestableTestc�(���jd�yr�r`r�s �r
r�zSTestModuleCleanUp.test_run_multiple_module_cleanUp.<locals>.TestableTest.setUpClass�r�rc�(���jd�yr�r`r�s �r
rXzTTestModuleCleanUp.test_run_multiple_module_cleanUp.<locals>.TestableTest.testNothing�r�rc�(���jd�yr�r`r�s �r
r�zVTestModuleCleanUp.test_run_multiple_module_cleanUp.<locals>.TestableTest.tearDownClass�r�rNr�r�s�r
r[r��r�rr[c�@��eZdZe�fd��Z�fd�Ze�fd��Zy)�ITestModuleCleanUp.test_run_multiple_module_cleanUp.<locals>.TestableTest2c�(���jd�y)N�setUpClass2r`r�s �r
r�zTTestModuleCleanUp.test_run_multiple_module_cleanUp.<locals>.TestableTest2.setUpClass�s������
�.rc�(���jd�y�N�test2r`r�s �r
rXzUTestModuleCleanUp.test_run_multiple_module_cleanUp.<locals>.TestableTest2.testNothing���������(rc�(���jd�y)N�tearDownClass2r`r�s �r
r�zWTestModuleCleanUp.test_run_multiple_module_cleanUp.<locals>.TestableTest2.tearDownClass�r�rNr�r�s�r
�
TestableTest2r��s,���
�
/��
/�
)�
�
2��
2rr�)r�r1r�r�r�r�r�r1)r�r�rxr�r�r1r�r1)r�r�rxr�r�r1r�r�r�r�r�r1�
r�r
rqrr�r�r/rrr+r�)r=r�r�r[r�r7r�r6s     @@@r
� test_run_multiple_module_cleanUpz2TestModuleCleanUp.test_run_multiple_module_cleanUp�s���������		2�f�		2�		3�f�		3�	1�8�,�,�	1�	2�H�-�-�	2�#,���!(����I��#,�
� �!(����I����}�-�����$4�	5���������}�-�����$4�	5�
��������}�-�����=�	>�
	
������7�7��<rc�(��g�G�fd�dt�}G�fd�dtj�}d|_|tj
d<t
|�|j�gd��|jtjjg�y)Nc�"��eZdZe�fd��Zy)�JTestModuleCleanUp.test_run_module_cleanUp_without_teardown.<locals>.Modulec�\���jd�tjt��yr��r5r
r�r8r�s�r
r�zVTestModuleCleanUp.test_run_module_cleanUp_without_teardown.<locals>.Module.setUpModule�������
�.��)�)�'�8�<rN)rrrr�r�r�s�r
r�r�s���
�
=��
=rr�c�@��eZdZe�fd��Z�fd�Ze�fd��Zy)�PTestModuleCleanUp.test_run_module_cleanUp_without_teardown.<locals>.TestableTestc�(���jd�yr�r`r�s �r
r�z[TestModuleCleanUp.test_run_module_cleanUp_without_teardown.<locals>.TestableTest.setUpClassr�rc�(���jd�yr�r`r�s �r
rXz\TestModuleCleanUp.test_run_module_cleanUp_without_teardown.<locals>.TestableTest.testNothingr�rc�(���jd�yr�r`r�s �r
r�z^TestModuleCleanUp.test_run_module_cleanUp_without_teardown.<locals>.TestableTest.tearDownClassr�rNr�r�s�r
r[r�r�rr[)r�r�rxr�r1r�)r=r�r[r6s   @r
�(test_run_module_cleanUp_without_teardownz:TestModuleCleanUp.test_run_module_cleanUp_without_teardownsw�����	=�V�	=�	1�8�,�,�	1�#+��� &����H���������$E�	F�������7�7��<rc���g�G�fd�dt�}G�fd�dtj�}d|_|tj
d<t
|�}|j|jddj�dt�d��|j�gd	��|jtjjg�y)
Nc�6��eZdZe�fd��Ze�fd��Zy)�QTestModuleCleanUp.test_run_module_cleanUp_when_teardown_exception.<locals>.Modulec�\���jd�tjt��yr�r�r�s�r
r�z]TestModuleCleanUp.test_run_module_cleanUp_when_teardown_exception.<locals>.Module.setUpModule(r�rc�<���jd�td��)Nr�r3r4r�s�r
r�z`TestModuleCleanUp.test_run_module_cleanUp_when_teardown_exception.<locals>.Module.tearDownModule,s������ 0�1�!�,�/�/rNr�r�s�r
r�r�'s)���
�
=��
=��
0��
0rr�c�@��eZdZe�fd��Z�fd�Ze�fd��Zy)�WTestModuleCleanUp.test_run_module_cleanUp_when_teardown_exception.<locals>.TestableTestc�(���jd�yr�r`r�s �r
r�zbTestModuleCleanUp.test_run_module_cleanUp_when_teardown_exception.<locals>.TestableTest.setUpClass2r�rc�(���jd�yr�r`r�s �r
rXzcTestModuleCleanUp.test_run_module_cleanUp_when_teardown_exception.<locals>.TestableTest.testNothing5r�rc�(���jd�yr�r`r�s �r
r�zeTestModuleCleanUp.test_run_module_cleanUp_when_teardown_exception.<locals>.TestableTest.tearDownClass7r�rNr�r�s�r
r[r�1r�rr[rr_r3r4r�r��r=r�r[rr6s    @r
�/test_run_module_cleanUp_when_teardown_exceptionzATestModuleCleanUp.test_run_module_cleanUp_when_teardown_exception%s������	0�V�	0�	1�8�,�,�	1�#+��� &����H���,�'��������q�)�!�,�7�7�9�"�=�+�,�L�9�	;�����$4�	5�	
������7�7��<rc����g�d�G��fd�dt�}G�fd�dtj�}d|_|tj
d<tjj|�}|j�|j�gd��|jtjjg�g�d�tjj|�}|jt�5}|j�ddd�|jtj�d�|j�gd	��|jtjjg�y#1swY�mxYw)
NFc�8��eZdZe��fd��Ze�fd��Zy)�DTestModuleCleanUp.test_debug_module_executes_cleanUp.<locals>.Modulec�`���jd�tjt����y�Nr�rr�r�s��r
r�zPTestModuleCleanUp.test_debug_module_executes_cleanUp.<locals>.Module.setUpModuleI�!������
�.��)�)�'�8�F�Krc�(���jd�yr�r`r�s�r
r�zSTestModuleCleanUp.test_debug_module_executes_cleanUp.<locals>.Module.tearDownModuleMr�rNr�r�s��r
r�rHs+���
�
L��
L��
2��
2rr�c�@��eZdZe�fd��Z�fd�Ze�fd��Zy)�JTestModuleCleanUp.test_debug_module_executes_cleanUp.<locals>.TestableTestc�(���jd�yr�r`r�s �r
r�zUTestModuleCleanUp.test_debug_module_executes_cleanUp.<locals>.TestableTest.setUpClassRr�rc�(���jd�yr�r`r�s �r
rXzVTestModuleCleanUp.test_debug_module_executes_cleanUp.<locals>.TestableTest.testNothingUr�rc�(���jd�yr�r`r�s �r
r�zXTestModuleCleanUp.test_debug_module_executes_cleanUp.<locals>.TestableTest.tearDownClassWr�rNr�r�s�r
r[rQr�rr[r�Tr3)r�r�rxr�r�r2)r�r
rqrr�r�r$r%r�rrr+r�rrrr
�r=r�r[r*r�r7r6s     @@r
�"test_debug_module_executes_cleanUpz4TestModuleCleanUp.test_debug_module_executes_cleanUpEs$�������	2�V�	2�	1�8�,�,�	1�#+��� &����H���*�*�@�@��N��
���
�����<�	=�	
������7�7��<������*�*�@�@��N��
�
�
�{�
+�r��K�K�M�,�����R�\�\�*�L�9�����$V�	W�������7�7��<�,�
+�s�3E0�0E9c�4���g�d�G��fd�dt�}G�fd�dtj�}d|_|tj
d<tjj|�}|jt�5}|j�ddd�|jtj�d�|j�gd��|jtjj �tjj j#�g�d�tjj|�}|jt�5}|j�ddd�|jt|j�d�|j�gd��|jtjj �tjj j#�y#1swY��pxYw#1swY��xYw)	NFc�8��eZdZe��fd��Ze�fd��Zy)�STestModuleCleanUp.test_debug_module_cleanUp_when_teardown_exception.<locals>.Modulec�`���jd�tjt����yrr�r�s��r
r�z_TestModuleCleanUp.test_debug_module_cleanUp_when_teardown_exception.<locals>.Module.setUpModulerrrc�<���jd�td��)Nr��TearDownModuleExcr4r�s�r
r�zbTestModuleCleanUp.test_debug_module_cleanUp_when_teardown_exception.<locals>.Module.tearDownModulevs������ 0�1�!�"5�6�6rNr�r�s��r
r�rqs+���
�
L��
L��
7��
7rr�c�@��eZdZe�fd��Z�fd�Ze�fd��Zy)�YTestModuleCleanUp.test_debug_module_cleanUp_when_teardown_exception.<locals>.TestableTestc�(���jd�yr�r`r�s �r
r�zdTestModuleCleanUp.test_debug_module_cleanUp_when_teardown_exception.<locals>.TestableTest.setUpClass|r�rc�(���jd�yr�r`r�s �r
rXzeTestModuleCleanUp.test_debug_module_cleanUp_when_teardown_exception.<locals>.TestableTest.testNothingr�rc�(���jd�yr�r`r�s �r
r�zgTestModuleCleanUp.test_debug_module_cleanUp_when_teardown_exception.<locals>.TestableTest.tearDownClass�r�rNr�r�s�r
r[r{r�rr[r)r�r�rxr�r�T)r�r
rqrr�r�r$r%rrr�rrrr
rvr+r�rrs     @@r
�1test_debug_module_cleanUp_when_teardown_exceptionzCTestModuleCleanUp.test_debug_module_cleanUp_when_teardown_exceptionns��������	7�V�	7�	1�8�,�,�	1�#+��� &����H���*�*�@�@��N��
�
�
�{�
+�r��K�K�M�,�����R�\�\�*�,?�@�����$G�	H�����
�
�6�6�7��
�
�&�&�,�,�.������*�*�@�@��N��
�
�
�{�
+�r��K�K�M�,�����R�\�\�*�,?�@�����$G�	H�����
�
�6�6�7��
�
�&�&�,�,�.�#,�
+��,�
+�s�H�H�H�Hc�����g��fd��G��fd�dtj�}�jt�5|j	�ddd��jt�5tjj|����ddd�t
|��j�dddd�fg�y#1swY�qxYw#1swY�9xYw)	Nc�,���j||f�yr	r`ras  �r
r8zBTestModuleCleanUp.test_addClassCleanup_arg_errors.<locals>.cleanup�r�rc�*��eZdZe��fd��Zd�Zy)�GTestModuleCleanUp.test_addClassCleanup_arg_errors.<locals>.TestableTestc���|j�dddd���jt�5|j�d��ddd�y#1swYyxYw)Nr_rhrjr��r�r�rkr�)r�rr�)r�r8r=s ��r
r�zRTestModuleCleanUp.test_addClassCleanup_arg_errors.<locals>.TestableTest.setUpClass�sI����#�#�G�Q��A�1�#�E��&�&�y�1��'�'��g�'�F�2�1�1���A
�
Ac��yr	rrAs r
rXzSTestModuleCleanUp.test_addClassCleanup_arg_errors.<locals>.TestableTest.testNothing�rYrN)rrrr�r�rXr�s��r
r[r�s���
�
G��
G�
rr[)r�r�r�rjr�r)r
rqrr�r�rtr/rr�r=r[r8rds` @@r
�test_addClassCleanup_arg_errorsz1TestModuleCleanUp.test_addClassCleanup_arg_errors�s������	,�	�8�,�,�	��
�
�y�
)��(�(�*�*�
�
�
�y�
)����(�(�\�^�g�(�N�*��������!��!�#<�=�>�	@�*�
)��
)�
)�s�B=�*'C	�=C�	Cc�����g��fd��G��fd�dtj�}�jt�5|�j	�ddd��jt�5tjj	|����ddd�t|��j
�dddd�fg�y#1swY�qxYw#1swY�9xYw)	Nc�,���j||f�yr	r`ras  �r
r8z=TestModuleCleanUp.test_addCleanup_arg_errors.<locals>.cleanup�r�rc� ��eZdZ��fd�Zd�Zy)�BTestModuleCleanUp.test_addCleanup_arg_errors.<locals>.TestableTestc���|j�dddd���jt�5|j�d��ddd�y#1swYyxYw)Nr_rhrjr��r�r=rkr�)rtrr�)�self2r8r=s ��r
r�zHTestModuleCleanUp.test_addCleanup_arg_errors.<locals>.TestableTest.setUp�sI���� � ��!�Q��� �C��&�&�y�1��$�$�g�7�$�C�2�1�1�r c��yr	rrAs r
rXzNTestModuleCleanUp.test_addCleanup_arg_errors.<locals>.TestableTest.testNothing�rYrN)rrrr�rXr�s��r
r[r'�s���
D�
rr[)r=r�r�rjr�r))r
rqrr�rtr/rrr"s` @@r
�test_addCleanup_arg_errorsz,TestModuleCleanUp.test_addCleanup_arg_errors�s������	,�	�8�,�,�	��
�
�y�
)��N�%�%�'�*�
�
�
�y�
)����(�(�l�n�w�(�O�*��������!��1�#=�>�?�	A�*�
)��
)�
)�s�C�/'C�C�Cc�H��g�G�fd�dt�}G�fd�dtj�}d|_|tj
d<t
|�}|j|jddj�dt�d��|j�gd	��y)
Nc�6��eZdZe�fd��Ze�fd��Zy)�ETestModuleCleanUp.test_with_errors_in_addClassCleanup.<locals>.Modulec�\���jd�tjt��yr�r�r�s�r
r�zQTestModuleCleanUp.test_with_errors_in_addClassCleanup.<locals>.Module.setUpModule�r�rc�(���jd�yr�r`r�s�r
r�zTTestModuleCleanUp.test_with_errors_in_addClassCleanup.<locals>.Module.tearDownModule�r�rNr�r�s�r
r�r/��)���
�
=��
=��
2��
2rr�c�@��eZdZe�fd��Z�fd�Ze�fd��Zy)�KTestModuleCleanUp.test_with_errors_in_addClassCleanup.<locals>.TestableTestc�X���jd�|jt�d��yr=rr�s �r
r�zVTestModuleCleanUp.test_with_errors_in_addClassCleanup.<locals>.TestableTest.setUpClass�r>rc�(���jd�yr�r`r�s �r
rXzWTestModuleCleanUp.test_with_errors_in_addClassCleanup.<locals>.TestableTest.testNothing�r�rc�(���jd�yr�r`r�s �r
r�zYTestModuleCleanUp.test_with_errors_in_addClassCleanup.<locals>.TestableTest.tearDownClass�r�rNr�r�s�r
r[r4�s.���
�
D��
D�
(�
�
1��
1rr[rr_r3r4)r�r�rxr�r2r�r1�r�r
rqrr�r�r/rrr�r6r�r�s    @r
�#test_with_errors_in_addClassCleanupz5TestModuleCleanUp.test_with_errors_in_addClassCleanup�s������	2�V�	2�		1�8�,�,�		1�#+��� &����H���,�'��������q�)�!�,�7�7�9�"�=�+�,�L�9�	;�����K�	Lrc�H��g�G�fd�dt�}G�fd�dtj�}d|_|tj
d<t
|�}|j|jddj�dt�d��|j�gd	��y)
Nc�6��eZdZe�fd��Ze�fd��Zy)�@TestModuleCleanUp.test_with_errors_in_addCleanup.<locals>.Modulec�\���jd�tjt��yr�r�r�s�r
r�zLTestModuleCleanUp.test_with_errors_in_addCleanup.<locals>.Module.setUpModule�r�rc�(���jd�yr�r`r�s�r
r�zOTestModuleCleanUp.test_with_errors_in_addCleanup.<locals>.Module.tearDownModule�r�rNr�r�s�r
r�r<�r2rr�c�,��eZdZ�fd�Z�fd�Z�fd�Zy)�FTestModuleCleanUp.test_with_errors_in_addCleanup.<locals>.TestableTestc�X���jd�|jt�d��yr-r.r�s �r
r�zLTestModuleCleanUp.test_with_errors_in_addCleanup.<locals>.TestableTest.setUp�r/rc�(���jd�yr�r`r�s �r
rXzRTestModuleCleanUp.test_with_errors_in_addCleanup.<locals>.TestableTest.testNothing�r�rc�(���jd�yr�r`r�s �r
r�zOTestModuleCleanUp.test_with_errors_in_addCleanup.<locals>.TestableTest.tearDown�r�rNr�r�s�r
r[r@�s���
@�
(�
,rr[rr_r3r4)r�r�rxr�r2r�r1r8r�s    @r
�test_with_errors_in_addCleanupz0TestModuleCleanUp.test_with_errors_in_addCleanup�s������	2�V�	2�	,�8�,�,�	,�#+��� &����H���,�'��������q�)�!�,�7�7�9�"�=�+�,�L�9�	;�����K�	Lrc������g�d�d�d�G��fd�dt�}G���fd�dtj�}d|_|tj
d<t
|�}|j|jddj�dt�d	��|j�gd
��g�d�d�d�t
|�}|j|jddj�dt�d��|j|jddj�dt�d	��|j�d
dg�g�d�d�d�t
|�}|j|jddj�dt�d��|j|jddj�dt�d	��|j�gd��g�d�d�d�t
|�}|j|jddj�dt�d��|j|jddj�dt�d	��|j�gd��y)NFc�8��eZdZe��fd��Ze�fd��Zy)�QTestModuleCleanUp.test_with_errors_in_addModuleCleanup_and_setUps.<locals>.Modulec�z���jd�tjt�d���rt	d��y)Nr�Tr�	ModuleExcr���module_blow_upr6s��r
r�z]TestModuleCleanUp.test_with_errors_in_addModuleCleanup_and_setUps.<locals>.Module.setUpModules4������
�.��)�)�'�8�D�I�!�%�k�2�2�"rc�(���jd�yr�r`r�s�r
r�z`TestModuleCleanUp.test_with_errors_in_addModuleCleanup_and_setUps.<locals>.Module.tearDownModuler�rNr�rJs��r
r�rG
s)���
�
3��
3�
�
2��
2rr�c�N��eZdZe��fd��Z��fd�Z�fd�Ze�fd��Zy)�WTestModuleCleanUp.test_with_errors_in_addModuleCleanup_and_setUps.<locals>.TestableTestc�B���jd��rtd��y)Nr�rGr4rHs ��r
r�zbTestModuleCleanUp.test_with_errors_in_addModuleCleanup_and_setUps.<locals>.TestableTest.setUpClasss"�������-� �%�j�1�1�!rc�B���jd��rtd��yrKr4rMs ��r
r�z]TestModuleCleanUp.test_with_errors_in_addModuleCleanup_and_setUps.<locals>.TestableTest.setUprOrc�(���jd�yr�r`r�s �r
rXzcTestModuleCleanUp.test_with_errors_in_addModuleCleanup_and_setUps.<locals>.TestableTest.testNothingr�rc�(���jd�yr�r`r�s �r
r�zeTestModuleCleanUp.test_with_errors_in_addModuleCleanup_and_setUps.<locals>.TestableTest.tearDownClass!r�rNr2rRs���r
r[rNs1���
�
2��
2�
3�
(�
�
1��
1rr[rr_r3r4)r�r�r�rxr�r�r2Tz: ModuleExcr�r2rS)r�r�r�r2rT)r�r�r�r�r�r2r8)r=r�r[rrIrNrKr6s    @@@@r
�/test_with_errors_in_addModuleCleanup_and_setUpszATestModuleCleanUp.test_with_errors_in_addModuleCleanup_and_setUpss���������
���		2�V�		2�	1�	1�8�,�,�	1� #+��� &����H���,�'��������q�)�!�,�7�7�9�"�=�+�,�L�9�	;�����)�	*�
�����
����,�'��������q�)�!�,�7�7�9�"�=�+�,�K�8�	:�������q�)�!�,�7�7�9�"�=�+�,�L�9�	;�����M�=�#A�B������
����,�'��������q�)�!�,�7�7�9�"�=�+�,�J�7�	9�������q�)�!�,�7�7�9�"�=�+�,�L�9�	;�����$E�	F������
����,�'��������q�)�!�,�7�7�9�"�=�+�,�K�8�	:�������q�)�!�,�7�7�9�"�=�+�,�L�9�	;�����$3�	4rc�D�����g��fd���fd���fd��G��fd�dt�}G��fd�dtj�}G��fd�d	tj�}d|_d|_|tj
d<t
||�|j�gd
��y)Nc�(���jd�yr�r`r�s�r
rezMTestModuleCleanUp.test_module_cleanUp_with_multiple_classes.<locals>.cleanup1Vr�rc�(���jd�yr�r`r�s�r
rizMTestModuleCleanUp.test_module_cleanUp_with_multiple_classes.<locals>.cleanup2Yr�rc�(���jd�yr�r`r�s�r
r�zMTestModuleCleanUp.test_module_cleanUp_with_multiple_classes.<locals>.cleanup3\r�rc�8��eZdZe��fd��Ze�fd��Zy)�KTestModuleCleanUp.test_module_cleanUp_with_multiple_classes.<locals>.Modulec�R���jd�tj��yr�)r5r
r��rer6s��r
r�zWTestModuleCleanUp.test_module_cleanUp_with_multiple_classes.<locals>.Module.setUpModule`s������
�.��)�)�(�3rc�(���jd�yr�r`r�s�r
r�zZTestModuleCleanUp.test_module_cleanUp_with_multiple_classes.<locals>.Module.tearDownModuledr�rNr�r[s��r
r�rY_s)���
�
4��
4��
2��
2rr�c�.��eZdZ��fd�Z�fd�Z�fd�Zy)�QTestModuleCleanUp.test_module_cleanUp_with_multiple_classes.<locals>.TestableTestc�J���jd�|j��yr�r�)r=rir6s ��r
r�zWTestModuleCleanUp.test_module_cleanUp_with_multiple_classes.<locals>.TestableTest.setUpir�rc�(���jd�yr�r`r�s �r
rXz]TestModuleCleanUp.test_module_cleanUp_with_multiple_classes.<locals>.TestableTest.testNothinglr�rc�(���jd�yr�r`r�s �r
r�zZTestModuleCleanUp.test_module_cleanUp_with_multiple_classes.<locals>.TestableTest.tearDownnr�rNr�)rir6s��r
r[r^hs���
*�
(�
,rr[c�.��eZdZ��fd�Z�fd�Z�fd�Zy)�VTestModuleCleanUp.test_module_cleanUp_with_multiple_classes.<locals>.OtherTestableTestc�J���jd�|j��y)N�setUp2r�r�s ��r
r�z\TestModuleCleanUp.test_module_cleanUp_with_multiple_classes.<locals>.OtherTestableTest.setUprs�������)�����)rc�(���jd�yr�r`r�s �r
rXzbTestModuleCleanUp.test_module_cleanUp_with_multiple_classes.<locals>.OtherTestableTest.testNothingur�rc�(���jd�y)N�	tearDown2r`r�s �r
r�z_TestModuleCleanUp.test_module_cleanUp_with_multiple_classes.<locals>.OtherTestableTest.tearDownws�������,rNr�)r�r6s��r
�OtherTestableTestrcqs���
*�
)�
-rri)r�r�rxr�rirer�rhr�r�re)r�r
rqrr�r�r/rr)r=r�r[rirerir�r6s    @@@@r
�)test_module_cleanUp_with_multiple_classesz;TestModuleCleanUp.test_module_cleanUp_with_multiple_classesTs������	(�	(�	(�	2�V�	2�	,�8�,�,�	,�	-�� 1� 1�	-�#+���'/��$� &����H����0�1�����D�	Erc�N�g}tj|jd�t|d�}|j	tj
|�d�tj|jd�tjj�|j	|gd��y)Nrer�rir�)r
r�r5r:rr�enterModuleContextr+r�)r=rdr�s   r
�test_enterModuleContextz)TestModuleCleanUp.test_enterModuleContext�sw�����!�!�(�/�/�:�>�
�H�b�
!������4�4�R�8�"�=��!�!�(�/�/�:�>��
�
�&�&�(�����#L�Mrc�:�Gd�dtj�}|jtd�5tjt��ddd�|jtd�5tjt
��ddd�|jtd�5tjt��ddd�|jtjjg�y#1swY��xYw#1swY�|xYw#1swY�LxYw)Nc��eZdZd�Zy)�JTestModuleCleanUp.test_enterModuleContext_arg_errors.<locals>.TestableTestc��yr	rrAs r
rXzVTestModuleCleanUp.test_enterModuleContext_arg_errors.<locals>.TestableTest.testNothing�rYrNrZrrr
r[rp�r\rr[r�)r
rqr�r�rlrIrKrPrrr+r�rhs  r
�"test_enterModuleContext_arg_errorsz4TestModuleCleanUp.test_enterModuleContext_arg_errors�s���	�8�,�,�	��
#�
#�I�/D�
E��'�'�(9�(;�<�F�
�
#�
#�I�/D�
E��'�'�
��5�F�
�
#�
#�I�/D�
E��'�'�	��4�F�	
������7�7��<�F�
E��
E�
E��
E�
E�s#�C9�,D�(D�9D�D�DN)rrrr�r�r�r�r�r�r�r
rr#r,r9rDrSrjrmrrrrr
r�r�\sg��=�0=�,
<�%=�NI=�V=�2=�@'=�R+/�Z@�,A�*L�BL�<M4�^-E�^	N�=rr�c��eZdZdZd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zej �d
��Zd�Zd�Zd�Zy)�Test_TextTestRunnerzTests for TextTestRunner.c��tjjd�|_|jrtjd=yy�N�PYTHONWARNINGS)�os�environ�get�pythonwarningsrAs r
r�zTest_TextTestRunner.setUp�s5��!�j�j�n�n�-=�>�������
�
�+�,�rc�X�|jr|jtjd<yyrv)r{rxryrAs r
r�zTest_TextTestRunner.tearDown�s%�����+/�+>�+>�B�J�J�'�(�rc��tj�}|j|j�|j|j�|j|jd�|j|jd�|j|j�|j|jtj�|j|j�|j|j�yr^)r
rr��failfast�bufferrr�	verbosity�warningsrv�descriptionsr�TextTestResult�	tb_locals�assertIsNone�	durations)r=r-s  r
�	test_initzTest_TextTestRunner.test_init�s����(�(�*��������)�������'�����)�)�1�-�������$�/�����+�+�,�����+�+�X�-D�-D�E�����)�)�*����&�*�*�+rc���G�fd�dtj��Gd�dtj��}|ddd�y)Nc�"���eZdZ��fd�Z�xZS)�>Test_TextTestRunner.test_multiple_inheritance.<locals>.AResultc�(��t�|�|||�yr	)�superr>)r=rr�r��AResult�	__class__s    ��r
r>zGTest_TextTestRunner.test_multiple_inheritance.<locals>.AResult.__init__�s����g�t�-�f�l�I�Nr)rrrr>�
__classcell__)r�r�s@�r
r�r��s���
O�
Orr�c��eZdZy)�BTest_TextTestRunner.test_multiple_inheritance.<locals>.ATextResultNrrrr
�ATextResultr��r�rr�r_)r
rr�)r=r�r�s  @r
�test_multiple_inheritancez-Test_TextTestRunner.test_multiple_inheritance�s9���	O�h�)�)�	O�	�(�1�1�7�	�
	�D�$��"rc�b��Gd�dtj�}tj��tjt	j
�dd��}�fd�|_|j|d��|j�j�|j�j�y)Nc��eZdZd�Zy)�7Test_TextTestRunner.testBufferAndFailfast.<locals>.Testc��yr	rrAs r
�testFooz?Test_TextTestRunner.testBufferAndFailfast.<locals>.Test.testFoo�rYrN�rrrr�rrr
�Testr��r\rr�T)rr~rc����Sr	rr~s�r
�<lambda>z;Test_TextTestRunner.testBufferAndFailfast.<locals>.<lambda>�����Vrr�)r
rqrrrr�_makeResultr(rvr~r)r=r�r-rs   @r
�testBufferAndFailfastz)Test_TextTestRunner.testBufferAndFailfast�s|���	�8�$�$�	��$�$�&���(�(����
��04�6��,����
�
�4�	�?�#�������(�����
�
�&rc���tjtj�d��}|j	tj
��}|j
d|j�y)NT)rr�)r
rrrr(r#rrr�)r=r-rs   r
�test_localszTest_TextTestRunner.test_locals�sG���(�(����
��N�����H�.�.�0�1������v�/�/�0rc������Gd�dtj�}tjj��fd�}�j	|�tj
��tjtj���}�fd�|_	d�_
��fd�}|tj_|jtj���j�jd�y)	Nc��eZdZd�Zy)�;Test_TextTestRunner.testRunnerRegistersResult.<locals>.Testc��yr	rrAs r
r�zCTest_TextTestRunner.testRunnerRegistersResult.<locals>.Test.testFoo�rYrNr�rrr
r�r��r\rr�c�0���tj_yr	)r
r-�registerResult)�originalRegisterResults�r
r8z>Test_TextTestRunner.testRunnerRegistersResult.<locals>.cleanup�s���-C�H�O�O�*r)rc����Sr	rr~s�r
r�z?Test_TextTestRunner.testRunnerRegistersResult.<locals>.<lambda>�r�rrc�T���xjdz
c_�j|��yr^)�
wasRegisteredrr)�
thisResultrr=s ��r
�fakeRegisterResultzITest_TextTestRunner.testRunnerRegistersResult.<locals>.fakeRegisterResult�s$������!�#�����Z��0rr_)r
rqr-r�rtrrrrr�r�r(r#rr)r=r�r8r-r�r�rs`    @@r
�testRunnerRegistersResultz-Test_TextTestRunner.testRunnerRegistersResult�s����	�8�$�$�	�"*���!?�!?��	D����� ��$�$�&���(�(����
�>��+������	1�*<����&��
�
�8�%�%�'�(�����+�+�Q�/rc����Gd�dt��G��fd�dtj����}|jtj��y)Nc��eZdZdZd�Zy)�bTest_TextTestRunner.test_works_with_result_without_startTestRun_stopTestRun.<locals>.OldTextResultr!c��yr	rrAs r
�printErrorsznTest_TextTestRunner.test_works_with_result_without_startTestRun_stopTestRun.<locals>.OldTextResult.printErrors�rYrN�rrr�
separator2r�rrr
�
OldTextResultr������J�
rr�c�,���eZdZ��fd�Z�fd�Z�xZS)�[Test_TextTestRunner.test_works_with_result_without_startTestRun_stopTestRun.<locals>.Runnerc�H��t�|�tj��yr	)r�r>rr)r=�Runnerr�s ��r
r>zdTest_TextTestRunner.test_works_with_result_without_startTestRun_stopTestRun.<locals>.Runner.__init__�s����f�d�,�R�[�[�]�;rc�����Sr	r)r=r�s �r
r�zgTest_TextTestRunner.test_works_with_result_without_startTestRun_stopTestRun.<locals>.Runner._makeResult�s���$��&r�rrrr>r�r�)r�r�r�s@��r
r�r��s���
<�
'�
'rr�)rr
rr(r#)r=r-r�r�s  @@r
�7test_works_with_result_without_startTestRun_stopTestRunzKTest_TextTestRunner.test_works_with_result_without_startTestRun_stopTestRun�s@���	�?�	�
	'�X�,�,�	'�����
�
�8�%�%�'�(rc�����Gd�dt��G��fd�dtj��g}�|�}|jtj��ddg}|j||�y)Nc��eZdZdZd�Zy)�STest_TextTestRunner.test_startTestRun_stopTestRun_called.<locals>.LoggingTextResultr!c��yr	rrAs r
r�z_Test_TextTestRunner.test_startTestRun_stopTestRun_called.<locals>.LoggingTextResult.printErrorsrYrNr�rrr
�LoggingTextResultr��r�rr�c�,���eZdZ��fd�Z�fd�Z�xZS)�OTest_TextTestRunner.test_startTestRun_stopTestRun_called.<locals>.LoggingRunnerc�V��t�|�tj��||_yr	)r�r>rr�_events)r=�events�
LoggingRunnerr�s  ��r
r>zXTest_TextTestRunner.test_startTestRun_stopTestRun_called.<locals>.LoggingRunner.__init__s����m�T�3�B�K�K�M�B�%��rc�(���|j�Sr	)r�)r=r�s �r
r�z[Test_TextTestRunner.test_startTestRun_stopTestRun_called.<locals>.LoggingRunner._makeResults���(����6�6rr�)r�r�r�s@��r
r�r�s���
&�
7�
7rr��startTestRun�stopTestRun)rr
rr(r#rr)r=r�r-�expectedr�r�s    @@r
�$test_startTestRun_stopTestRun_calledz8Test_TextTestRunner.test_startTestRun_stopTestRun_called�sa���	�
�	�
	7�H�3�3�	7����v�&���
�
�8�%�%�'�(�"�M�2�������*rc�b�tjd�}tj|�}t	dt
jdz�D]e}tj||�}tj|�}|j|jj�|j���gy)Nr�rhr_)rrr
r�range�pickle�HIGHEST_PROTOCOL�dumps�loadsrrrr�)r=rr-�protocol�s�objs      r
�test_pickle_unpicklez(Test_TextTestRunner.test_pickle_unpickles�����U�#���(�(��0���a��!8�!8�1�!<�=�H����V�X�.�A��,�,�q�/�C����S�Z�Z�0�0�2�F�O�O�4E�F�	>rc��d�}t�}t�}t�}tj||||��}|j|j|�|j
||f}|j|j
�|�y)Nc��|Sr	r)rbs r
�MockResultClassz=Test_TextTestRunner.test_resultclass.<locals>.MockResultClasss���Kr)r)r�r
rrrrrr�)r=r��STREAM�DESCRIPTIONS�	VERBOSITYr-�expectedresults       r
�test_resultclassz$Test_TextTestRunner.test_resultclasssu��	�����x���H�	��(�(���y�5D�F������+�+�_�=� �-�-��y�A������+�+�-�~�>rc��d�}ttjtjtjjt���}tjtjddgfi|��}|5||�\}}ddd�|jd�|jt�d�dD]#}|j|j|�d	��%d
D]#}|j|j|�d��%tjddgtjd
ddgtjddgf}|D][}tj|fi|��}|5||�\}}ddd�|jd|�|jt|�d��]tjtjddgfi|��}|5||�\}}ddd�|jd|�|jt|�d�dD]#}|j|j|�d	��%y#1swY���xYw#1swY��xYw#1swY�xxYw)zx
        Check that warnings argument of TextTestRunner correctly affects the
        behavior of the warnings.
        c�d�|j�D�cgc]}|j���c}Scc}wr	)�communicater6)�p�bs  r
�get_parse_out_errz<Test_TextTestRunner.test_warnings.<locals>.get_parse_out_err1s&��,-�M�M�O�<�O�q�A�L�L�N�O�<�<��<s�-)�stdout�stderr�cwdz-Ez_test_warnings.pyNsOK�
)�dw�iw�uwrj)�rwr_�ignorez-Waz-Wir�always�)r�r�r�r�)ru�
subprocess�PIPErx�path�dirname�__file__�Popenr��
executabler�rrr!�count)	r=r��optsr��out�err�msg�	args_listrbs	         r
�
test_warningsz!Test_TextTestRunner.test_warnings)s���	=��:�?�?�:�?�?�������1�3��
���c�n�n�d�4G�H�Q�D�Q��
�(��+�H�C����
�
�e�S�!�����S��2�&�(�C����S�Y�Y�s�^�Q�/�)��C����S�Y�Y�s�^�Q�/��
�^�^�0�(�;�
�^�^�U�$7��B�
�^�^�U�$7�8�

�	��D�� � ��.��.�A��,�Q�/���S���M�M�%��%����S��X�q�)��
���c�n�n�.A�8�L�
%�#�
%��
�(��+�H�C����
�
�e�S�!�����S��2�&�/�C����S�Y�Y�s�^�Q�/�0�I�Q��,����Q�s$�8H5�I�I�5H?�I	�Ic��tj}tj�}|t_	t	j
�}|j
|jj|u�|t_y#|t_wxYwr	)r�r�rrr
rrvr)r=�
old_stderr�fr-s    r
�%testStdErrLookedUpAtInstantiationTimez9Test_TextTestRunner.testStdErrLookedUpAtInstantiationTime_sZ���Z�Z�
��K�K�M����
�	$��,�,�.�F��O�O�F�M�M�0�0�A�5�6�#�C�J���C�J�s�;A8�8
Bc��tj�}tj|�}|j	|j
j
|u�yr	)rrr
rrvr)r=rr-s   r
�testSpecifiedStreamUsedz+Test_TextTestRunner.testSpecifiedStreamUsedjs8���K�K�M���(�(��+������
�
�,�,��1�2rc���dd��fd�
}Gd�dtj�}||d�d��Gd�dtj�}||d�d��Gd�dtj�}||d�d��Gd	�dtj�}||d�d��Gd
�dtj�}||d�d��y)NT)�expect_durationsc���t�}tj|dd��}|j|�}�j	|j
d�|j
�|j�}d}|rJ�j	t|j�d��jd|��j||�y�j	t|j�d��jd|��j||�y)N�rh)rr�r�z
\n\d+.\d\d\dsr_zSlowest test durationsr)rr
rr(rrr��flushr�r!�collectedDurationsr��assertRegex�assertNotIn�assertNotRegex)rxrrr-r�text�regexr=s       �r
r(z/Test_TextTestRunner.test_durations.<locals>.runqs����#�%�F��,�,�F�a�ST�U�F��Z�Z��%�F����V�-�-�q�1��L�L�N��?�?�$�D�$�E��� � ��V�%>�%>�!?��C��
�
�6��=�� � ��u�-�� � ��V�%>�%>�!?��C�� � �!9�4�@��#�#�D�%�0rc��eZdZd�Zy)�/Test_TextTestRunner.test_durations.<locals>.Fooc��yr	rrAs r
�test_1z6Test_TextTestRunner.test_durations.<locals>.Foo.test_1�rYrN�rrrrrrr
�Foor�r\rrrc��eZdZd�Zy)rc�(�|jdd�y)Nrr_)rrrAs r
rz6Test_TextTestRunner.test_durations.<locals>.Foo.test_1�s��� � ��A�&rNrrrr
rz/Test_TextTestRunner.test_durations.<locals>.Foo�s��
'rc��eZdZd�Zy)rc��ddzy�Nr_rrrAs r
rz6Test_TextTestRunner.test_durations.<locals>.Foo.test_1��	���A�rNrrrr
rz/Test_TextTestRunner.test_durations.<locals>.Foo�s��
rc��eZdZd�ZeZd�Zy)rc��ddzyrrrAs r
r�z5Test_TextTestRunner.test_durations.<locals>.Foo.setUp�rrc��yr	rrAs r
rz6Test_TextTestRunner.test_durations.<locals>.Foo.test_1�rYrN)rrrr�r�rrrr
rz/Test_TextTestRunner.test_durations.<locals>.Foo�s��
��H�
rc�<�eZdZejd�d��Zy)r�reasonc��yr	rrAs r
rz6Test_TextTestRunner.test_durations.<locals>.Foo.test_1�s��rN)rrrr
�skiprrrr
rz/Test_TextTestRunner.test_durations.<locals>.Foo�s��
�X�]�]�8�
$�
�%�
rF)r
rq)r=r(rs`  r
�test_durationsz"Test_TextTestRunner.test_durationsps����*.�	1�$	�(�#�#�	�	�C��M�D�1�	'�(�#�#�	'�	�C��M�D�1�	�(�#�#�	�	�C��M�D�1�	�(�#�#�	�	�C��M�D�1�	�(�#�#�	�
	�C��M�E�2rN)rrr�__doc__r�r�r�r�r�r�r�r�r�r�r�r�requires_subprocessr�rrr$rrr
rtrt�sl��#�-�?�
	,�
#�'�1�
0�.)� +�(	G�?�!�W� � �"�30�#�30�j	$�3�83rrt)F) rrxr�r�r�rxrr
�
unittest.caser�test.test_unittest.supportrrrrr�	Exceptionrrr�r/r8r:rIrKrPrqrSr�r�rt�mainrrr
�<module>r+s���	�	�
�
����"���!�9�
	�)�	�(0�:�'=�X��^�2�F�k�R��!�"(�
%�
%�	�	�
�
�
�
�
g-�(�#�#�g-�T]D�x�(�(�]D�@~=��)�)�~=�BK3�(�+�+�K3�^�z���H�M�M�O�r

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists