ó
ŠwÛjc           @   s¸   d  d l  Z  d  d l m Z m Z m Z e d ƒ d  d l m Z m Z m Z m	 Z	 m
 Z
 e j Z d e  j f d „  ƒ  YZ d e  j f d „  ƒ  YZ d	 „  Z e d
 k r´ e ƒ  n  d S(   iÿÿÿÿN(   t   check_warningst   run_unittestt   import_modulet   _ctypes(   t	   pythonapit   create_string_buffert   sizeoft   byreft   c_doublet   FormatDeprecationTestsc           B   s   e  Z d  „  Z RS(   c      
   C   se   t  d d ƒ } t d t f ƒ �= t t | ƒ t | ƒ d t d ƒ ƒ |  j | j d ƒ Wd  QXd  S(   Nt    id   s    PyOS_ascii_formatd is deprecateds   %+.10fg      $@s   +10.0000000000(	   R   R    t   DeprecationWarningt   PyOS_ascii_formatdR   R   R   t   assertEqualt   value(   t   selft   buf(    (    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_ascii_formatd.pyt   test_format_deprecation   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_ascii_formatd.pyR	      s   t   FormatTestsc           B   s   e  Z d  „  Z RS(   c         C   s¤   t  d d ƒ } d d d d d d d d d d g
 } t d t f ƒ �X xP | D]H \ } } t t | ƒ t | ƒ | t | ƒ ƒ |  j | j | | ƒ qN WWd  QXd  S(   NR
   id   s   %fg      Y@s   %gs   %#gs   %#.2ggS£’:Ý^@gæöÏ®IÎyis   %egX9´Èv¾ó?s   %+es   %-es    PyOS_ascii_formatd is deprecated(   s   %fg      Y@(   s   %gg      Y@(   s   %#gg      Y@(   s   %#.2gg      Y@(   s   %#.2ggS£’:Ý^@(   s   %#.2ggæöÏ®IÎyi(   s   %egæöÏ®IÎyi(   s   %egX9´Èv¾ó?(   s   %+egX9´Èv¾ó?(   s   %-egX9´Èv¾ó?(	   R   R    R   R   R   R   R   R   R   (   R   R   t   testst   formatt   val(    (    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_ascii_formatd.pyt   test_format   s"    	(   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_ascii_formatd.pyR      s   c           C   s   t  t t ƒ d  S(   N(   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_ascii_formatd.pyt	   test_main6   s    t   __main__(   t   unittestt   test.test_supportR    R   R   t   ctypesR   R   R   R   R   R   t   TestCaseR	   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_ascii_formatd.pyt   <module>   s   
(		