B
    u9a                 @   sR   d Z ddlZddlZddlmZ ddlmZ G dd dejZe	dkrNe
  dS )z?Basic test of the frozen module (source is in Python/frozen.c).    N)captured_stdout)utilc               @   s   e Zd Zdd ZdS )
TestFrozenc          	   C   sD   d}|t jkrt j|= t }dd l}W d Q R X | | d d S )N	__hello__r   zHello world!
)sysmodulesr   r   ZassertEqualgetvalue)selfnameoutr    r   !/usr/lib/python3.7/test_frozen.pytest_frozen   s    
zTestFrozen.test_frozenN)__name__
__module____qualname__r   r   r   r   r   r      s   r   __main__)__doc__r   ZunittestZtest.supportr   	importlibr   ZTestCaser   r   mainr   r   r   r   <module>   s   
