ó
‹wÛjc           @   sj   d  Z  d d l Z d d l Z d d l m Z d e j f d „  ƒ  YZ d „  Z e d k rf e ƒ  n  d S(   sÄ   
Test the internal getargs.c implementation

 PyArg_ParseTuple() is defined here.

The test here is not intended to test all of the module, just the
single case that failed between 2.1 and 2.2a2.
iÿÿÿÿN(   t   test_supportt   GetArgsTestc           B   s   e  Z d  „  Z RS(   c         C   s)   t  d d ƒ } |  j t t j | ƒ d  S(   Ns   \222s   unicode-escape(   t   unicodet   assertRaisest   UnicodeErrort   marshalt   loads(   t   selft   arg(    (    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_getargs.pyt   test_with_marshal   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_getargs.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_getargs.pyt	   test_main   s    t   __main__(	   t   __doc__R   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_getargs.pyt   <module>   s   	