????
Current Path : /lib/python3.6/site-packages/zope/component/tests/__pycache__/ |
Current File : //lib/python3.6/site-packages/zope/component/tests/__pycache__/test_standalone.cpython-36.opt-1.pyc |
3 ,�W� � @ sT d Z ddlZyddlZW n ek r0 dZY nX dZG dd� dej�Zdd� ZdS ) zComponent Architecture Tests � NFTc @ s e Zd Zdd� ZdS )�StandaloneTestsc C s@ dd l }dd l}dd l}dd l}|jj|j�}|jj|jjt��}|jj |d�}|j ||g|j|j|jd�}z�|j |j|j� |jj� y|j� } W n. tk r� } z| jdkr�� W Y d d } ~ X nX | dk�r,|jj� }t|t�r�|j� }|jjdd d � |jj|� |jjdd d � | jd| � W d |jj� X d S ) Nr zstandalonetests.py)�stdout�stderr�stdin� �#�P � zOutput code: %d)� subprocess�sys�os�pickle�path�abspath� executable�dirname�__file__�join�Popen�PIPEZSTDOUT�dumpr �close�wait�OSError�errnor �read� isinstance�bytes�decoder �writeZfail)�selfr r r r r �whereZprogramZprocessZrc�e�output� r$ �%/usr/lib/python3.6/test_standalone.py�testStandalone s8 zStandaloneTests.testStandaloneN)�__name__� __module__�__qualname__r&