ó
ŠwÛjc           @   s!  d  d l  Z  d  d l Z d  d l m Z d  d l m Z d d d „  ƒ  YZ d e f d „  ƒ  YZ d e f d	 „  ƒ  YZ	 d
 e f d „  ƒ  YZ
 d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e j f d „  ƒ  YZ d „  Z e d k re ƒ  n  d S(   iÿÿÿÿN(   t   test_support(   t   ExtensionSavert   Cc           B   s   e  Z RS(    (   t   __name__t
   __module__(    (    (    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_copy_reg.pyR      s   t   WithoutSlotsc           B   s   e  Z RS(    (   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_copy_reg.pyR      s   t   WithWeakrefc           B   s   e  Z d Z RS(   t   __weakref__(   R   (   R   R   t	   __slots__(    (    (    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_copy_reg.pyR      s   t   WithPrivatec           B   s   e  Z d Z RS(   t   __spam(   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_copy_reg.pyR	      s   t    _WithLeadingUnderscoreAndPrivatec           B   s   e  Z d Z RS(   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_copy_reg.pyR      s   t   ___c           B   s   e  Z d Z RS(   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_copy_reg.pyR      s   t   WithSingleStringc           B   s   e  Z d  Z RS(   t   spam(   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_copy_reg.pyR      s   t   WithInheritedc           B   s   e  Z d Z RS(   t   eggs(   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_copy_reg.pyR      s   t   CopyRegTestCasec           B   s>   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   s    |  j  t t j t d  d  ƒ d  S(   N(   t   assertRaisest	   TypeErrort   copy_regt   pickleR   t   None(   t   self(    (    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_copy_reg.pyt
   test_class#   s    c         C   s#   |  j  t t j t d ƒ d ƒ d  S(   Ni   s   not a callable(   R   R   R   R   t   type(   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_copy_reg.pyt   test_noncallable_reduce'   s    c         C   s&   |  j  t t j t d ƒ t d ƒ d  S(   Ni   s   not a callable(   R   R   R   R   R   t   int(   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_copy_reg.pyt   test_noncallable_constructor+   s    c         C   s)   d d  l  } |  j t | j  t ƒ ƒ d  S(   Niÿÿÿÿ(   t   copyt   assertEqualt   True(   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_copy_reg.pyt	   test_bool/   s    c         C   s_  d	 \ } } } t  | ƒ } z—|  j t t j | | | ƒ t j | | | ƒ |  j t j | | f | k ƒ |  j t j | | | f k ƒ |  j	 | t j
 ƒ t j | | | ƒ |  j t t j | | | d ƒ |  j t t j | | | d ƒ |  j t t j | d | | ƒ |  j t t j | d | | ƒ |  j t t j | | d | ƒ |  j t t j | | d | ƒ | d t j k r±|  j t t j | d | d | d ƒ n  Wd  | j ƒ  X|  j	 | | f t j ƒ xR d
 D]J } t  | ƒ } z* t j | | | ƒ t j | | | ƒ Wd  | j ƒ  XqàWx* d D]" } |  j t t j | | | ƒ q5Wd  S(   Ns   junk1 s    junk2iÍ«  i   iÿÿÿiÿÿÿÿi    l        (   s   junk1 s    junk2iÍ«  (   i   iÿÿÿ(   iÿÿÿÿi    l        (   R   R   t
   ValueErrorR   t   remove_extensiont   add_extensiont
   assertTruet   _extension_registryt   _inverted_registryt   assertNotInt   _extension_cachet   restore(   R   t   modt   funct   codet   e(    (    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_copy_reg.pyt   test_extension_registry3   sH       c         C   sñ   |  j  t j t ƒ g  ƒ |  j  t j t ƒ g  ƒ d g } |  j  t j t ƒ | ƒ d g } |  j  t j t ƒ | ƒ |  j  t j t ƒ d g ƒ |  j  t j t ƒ d g ƒ d d g } | j	 ƒ  t j t
 ƒ } | j	 ƒ  |  j  | | ƒ d  S(   Nt   _WithPrivate__spamt&   _WithLeadingUnderscoreAndPrivate__spamR
   R   R   (   R   R   t
   _slotnamesR   R   R	   R   R   R   t   sortR   (   R   t   expectedt   result(    (    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_copy_reg.pyt   test_slotnamesm   s    		

(   R   R   R   R   R   R    R.   R5   (    (    (    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_copy_reg.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_copy_reg.pyt	   test_main~   s    t   __main__(    (   R   t   unittestt   testR    t   test.pickletesterR   R   t   objectR   R   R	   R   R   R   R   t   TestCaseR   R7   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_copy_reg.pyt   <module>   s   ]	