B
    u9a                 @   sN   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rJe	  dS )    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__)
r   ZunittestZtest.supportr   	importlibr   ZTestCaser   r   mainr   r   r   r   <module>   s   
