File: //opt/cppython/lib/python3.8/test/test_tools/__pycache__/__init__.cpython-38.pyc
U
1D�g9 � @ s� d Z ddlZddlZddlZddlmZ ej�ej�ej�ej�e����Z ej�
e d�Zej�
ed�Zdd� Z
dd � Zd
d� ZdS )z=Support functions for testing scripts in the Tools directory.� N)�supportZToolsZscriptsc C s t j�t�st�d��d S )Nz$scripts directory could not be found)�os�path�isdir�
scriptsdir�unittestZSkipTest� r r �7/opt/cppython/lib/python3.8/test/test_tools/__init__.py�skip_if_missing s r
c
C s, t �t�� t�| �W 5 Q R � S Q R X d S �N)r Z
DirsOnSysPathr � importlib�
import_module)Ztoolnamer r r �import_tool s r c G s t jtj�t�f| �� S r )r Zload_package_testsr r �dirname�__file__)�argsr r r �
load_tests s r )�__doc__r r r �testr r r r Zbasepath�joinZtoolsdirr r
r r r r r r �<module> s
���