Your IP : 216.73.216.172


Current Path : /lib/python3/dist-packages/zope/component/tests/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/zope/component/tests/__pycache__/test_standalone.cpython-38.pyc

U

,�W�	�@sTdZddlZzddlZWnek
r0dZYnXdZGdd�dej�Zdd�ZdS)	zComponent Architecture Tests
�NFTc@seZdZdd�ZdS)�StandaloneTestsc
Cs0ddl}ddl}ddl}ddl}|j�|j�}|j�|j�t��}|j�	|d�}|j
||g|j|j|jd�}z�|�|j|j�|j��z|��}	Wn.tk
r�}
z|
jdkr��W5d}
~
XYnX|	dk�r|j
��}t|t�r�|��}|j�d�|j
�|�|j�d�|�d|	�W5|j
��XdS)Nrzstandalonetests.py)�stdout�stderr�stdin�zQ################################################################################
zOutput code: %d)�
subprocess�sys�os�pickle�path�abspath�
executable�dirname�__file__�join�Popen�PIPEZSTDOUTr�close�dumpr�wait�OSError�errno�read�
isinstance�bytes�decoder�writeZfail)�selfrrr	r
r
�whereZprogramZprocessZrc�e�output�r!�F/usr/lib/python3/dist-packages/zope/component/tests/test_standalone.py�testStandalones:
�




zStandaloneTests.testStandaloneN)�__name__�
__module__�__qualname__r#r!r!r!r"rsrcCstrt�t�St��S)N)�_HAS_ZOPE_SECURITY�unittestZ	makeSuiterZ	TestSuiter!r!r!r"�
test_suite=s
r))	�__doc__r(Z
zope.security�zope�ImportErrorr'ZTestCaserr)r!r!r!r"�<module>s
$