File: //opt/cppython/lib/python3.8/test/test_importlib/builtin/__pycache__/test_finder.cpython-38.pyc
U
/D�gK � @ s� d dl mZ d dl mZ e�d�ZddlZddlZe�ejj dkd�G dd� dej
��Zejeed �\Z
Ze�ejj dkd�G d
d� dej
��Z
eje
ed �\ZZedkr�e�� dS )
� )�abc)�utilzimportlib.machinery� Nzno reasonable builtin modulec @ s8 e Zd ZdZdd� ZdZdZdZdZdd� Z dd� Z
dS ) �
FindSpecTestsz&Test find_spec() for built-in modules.c C sH t �t jj��0 | jj�t jj�}| �|� | �|j d� W 5 Q R X d S )Nzbuilt-in)
r �uncache�BUILTINS� good_name� machinery�BuiltinImporter� find_spec�
assertTrueZassertEqual�origin��self�found� r �F/opt/cppython/lib/python3.8/test/test_importlib/builtin/test_finder.py�test_module s
zFindSpecTests.test_moduleNc C s. d}|t jkst�| jj�|�}| �|� d S �N� importlib)�sys�builtin_module_names�AssertionErrorr r
r �assertIsNone)r �name�specr r r �test_failure"