ó
wŰjc           @   sj   d  d l  m Z m Z d  d l Z d  d l Z d e j f d     YZ d   Z e d k rf e   n  d S(   i˙˙˙˙(   t   captured_stdoutt   run_unittestNt   FrozenTestsc           B   s   e  Z d    Z RS(   c      	   C   s2  t    ď } y d d  l } Wn* t k
 rH } |  j d t |   n Xy d d  l } Wn* t k
 r } |  j d t |   n Xy d d  l } Wn* t k
 rÂ } |  j d t |   n Xy d d  l } Wn t k
 rć n X|  j d  Wd  QX|  j | j	   d  t
 j d =t
 j d =t
 j d	 =d  S(
   Ni˙˙˙˙s   import __hello__ failed:s   import __phello__ failed:s   import __phello__.spam failed:s(   import __phello__.foo should have faileds-   Hello world...
Hello world...
Hello world...
t	   __hello__t
   __phello__s   __phello__.spam(   R    R   t   ImportErrort   failt   strR   t   __phello__.spamt   __phello__.foot   assertEqualt   getvaluet   syst   modules(   t   selft   stdoutR   t   xR   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_frozen.pyt   test_frozen   s.    

(   t   __name__t
   __module__R   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_frozen.pyR      s   c           C   s   t  t  d  S(   N(   R   R   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_frozen.pyt	   test_main)   s    t   __main__(	   t   test.test_supportR    R   t   unittestR   t   TestCaseR   R   R   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_frozen.pyt   <module>   s   "	