ó
wŰjc           @   s^   d  Z  d d l Z d d l m Z d e j f d     YZ d   Z e d k rZ e   n  d S(   s/   test script for a few new invalid token catchesi˙˙˙˙N(   t   test_supportt   EOFTestCasec           B   s   e  Z d    Z d   Z RS(   c         C   sM   d } y t  d  Wn) t k
 r? } |  j t |  |  n
 Xt j  d  S(   Ns4   EOL while scanning string literal (<string>, line 1)s   'this is a test            (   t   evalt   SyntaxErrort   assertEqualt   strR    t
   TestFailed(   t   selft   expectt   msg(    (    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_eof.pyt	   test_EOFC   s    c         C   sM   d } y t  d  Wn) t k
 r? } |  j t |  |  n
 Xt j  d  S(   NsB   EOF while scanning triple-quoted string literal (<string>, line 1)s   '''this is a test(   R   R   R   R   R    R   (   R   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_eof.pyt	   test_EOFS   s    (   t   __name__t
   __module__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_eof.pyR      s   	
c           C   s   t  j t  d  S(   N(   R    t   run_unittestR   (    (    (    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_eof.pyt	   test_main   s    t   __main__(   t   __doc__t   unittestt   testR    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_eof.pyt   <module>   s   	