ó
wŰjc           @   s|   d  d l  Z  d  d l m Z d  d l Z e j d  Z d   Z d e  j f d     YZ d   Z	 e
 d k rx e	   n  d S(	   i˙˙˙˙N(   t   test_supports   \((\S+).py, line (\d+)c         C   s%   t  j t |    } | j d d  S(   Ni   i   (   t   rxt   searcht   strt   group(   t   msgt   mo(    (    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_future.pyt   get_error_location	   s    t
   FutureTestc           B   s}   e  Z d    Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z	 d   Z
 d	   Z d
   Z d   Z d   Z RS(   c         C   s4   t  j d  d d l m } |  j | j d  d  S(   Nt   test_future1i˙˙˙˙(   R	   i   (   R    t   unloadt   testR	   t   assertEqualt   result(   t   selfR	   (    (    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_future.pyR	      s    c         C   s4   t  j d  d d l m } |  j | j d  d  S(   Nt   test_future2i˙˙˙˙(   R   i   (   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_future.pyR      s    c         C   s!   t  j d  d d l m } d  S(   Nt   test_future3i˙˙˙˙(   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_future.pyR      s    c         C   sQ   y d d l  m } Wn) t k
 r? } |  j t |  d  n X|  j d  d  S(   Ni˙˙˙˙(   t   badsyntax_future3R   t   3s   expected exception didn't occur(   R   R   (   R   R   t   SyntaxErrorR   R   t   fail(   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_future.pyt   test_badfuture3   s
    c         C   sQ   y d d l  m } Wn) t k
 r? } |  j t |  d  n X|  j d  d  S(   Ni˙˙˙˙(   t   badsyntax_future4R   R   s   expected exception didn't occur(   R   R   (   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_future.pyt   test_badfuture4%   s
    c         C   sQ   y d d l  m } Wn) t k
 r? } |  j t |  d  n X|  j d  d  S(   Ni˙˙˙˙(   t   badsyntax_future5R   t   4s   expected exception didn't occur(   R   R   (   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_future.pyt   test_badfuture5-   s
    c         C   sQ   y d d l  m } Wn) t k
 r? } |  j t |  d  n X|  j d  d  S(   Ni˙˙˙˙(   t   badsyntax_future6R   R   s   expected exception didn't occur(   R   R   (   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_future.pyt   test_badfuture65   s
    c         C   sQ   y d d l  m } Wn) t k
 r? } |  j t |  d  n X|  j d  d  S(   Ni˙˙˙˙(   t   badsyntax_future7R   R   s   expected exception didn't occur(   R   R   (   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_future.pyt   test_badfuture7=   s
    c         C   sQ   y d d l  m } Wn) t k
 r? } |  j t |  d  n X|  j d  d  S(   Ni˙˙˙˙(   t   badsyntax_future8R   R   s   expected exception didn't occur(   R   R   (   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_future.pyt   test_badfuture8E   s
    c         C   sQ   y d d l  m } Wn) t k
 r? } |  j t |  d  n X|  j d  d  S(   Ni˙˙˙˙(   t   badsyntax_future9R!   R   s   expected exception didn't occur(   R!   R   (   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_future.pyt   test_badfuture9M   s
    c         B   s^   y d d  UWn e  k
 r n X|  j d  y d d  UWn e  k
 rL n X|  j d  d  S(   Ns.   from __future__ import print_function; print 0s   syntax error didn't occurs0   from __future__ import (print_function); print 0(   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_future.pyt   test_parserhackU   s    c         C   s!   t  j d  d d l m } d  S(   Ns   test.test_future5i˙˙˙˙(   t   test_future5(   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_future.pyt   test_multiple_featuresi   s    c         B   s&   i  } d | U|  j  | d e  d  S(   Ns/   from __future__ import unicode_literals; x = ''t   x(   t   assertIsInstancet   unicode(   R   t   scope(    (    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_future.pyt   test_unicode_literals_execm   s    (   t   __name__t
   __module__R	   R   R   R   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_future.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_future.pyt	   test_mains   s    t   __main__(   t   unittestR   R    t   ret   compileR   R   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_future.pyt   <module>   s   	f	