ó
ŒwÛjc           @   s  d  d l  Z  d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l	 Z	 d  d l
 m Z d  d l m Z e j Z d 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   support(   t   script_helpert   ClassicClassc           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_test_support.pyR      s   t   NewStyleClassc           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_test_support.pyR      s   t   TestSupportc           B   sv  e  Z d  „  Z d „  Z d „  Z e j d ƒ d „  ƒ Z d „  Z d „  Z	 d „  Z
 d „  Z d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z e j e e d ƒ d ƒ 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" d „  Z# d  „  Z$ d! „  Z% d" „  Z& d# „  Z' d$ „  Z( d% „  Z) d& „  Z* RS('   c         C   s*   t  j d ƒ |  j t j t  j d ƒ d  S(   Nt   ftplibt   foo(   R    t   import_modulet   assertRaisest   unittestt   SkipTest(   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_test_support.pyt   test_import_module   s    c         C   s   t  j d ƒ d  S(   NR   (   R    t   import_fresh_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_test_support.pyt   test_import_fresh_module   s    c         C   s!  |  j  t j |  d ƒ |  j ƒ |  j t j t j |  d ƒ |  j t j d ƒ � t j t d ƒ Wd  QX|  j t j d ƒ � t j t d ƒ Wd  QX|  j t j d ƒ � t j t ƒ  d ƒ Wd  QX|  j t j d ƒ � t j t	 d ƒ Wd  QX|  j t j d ƒ � t j t	 ƒ  d ƒ Wd  QXd  S(   Nt   test_get_attributeR   R   R   R   (
   t   assertEqualR    t   get_attributeR   R
   R   R   t   assertRaisesRegexpR   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_test_support.pyR   !   s    
s   failing buildbotsc         C   s   |  j  t j ƒ  t j ƒ d  S(   N(   R   R    t   get_original_stdoutt   syst   stdout(   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_test_support.pyt   test_get_original_stdout0   s    c         C   sC   d d  l  } |  j d t j ƒ t j d ƒ |  j d t j ƒ d  S(   Niÿÿÿÿt   sched(   R   t   assertInR   t   modulesR    t   unloadt   assertNotIn(   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_test_support.pyt   test_unload4   s    c         C   sO   t  t d ƒ � } Wd  QXt j t ƒ |  j t j j t ƒ ƒ t j t ƒ d  S(   Nt   w(   t   opent   TESTFNR    t   unlinkt   assertFalset   ost   patht   exists(   R   t   f(    (    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_test_support.pyt   test_unlink:   s
    c         C   sq  t  j d } t j j | d ƒ } t j | ƒ t j | ƒ t  j | ƒ |  j t j j | ƒ ƒ t  j	 t  d d ƒ � t  j | ƒ Wd  QXt j | ƒ t j | ƒ t j
 | t j t j Bƒ t  j	 t  d d ƒ � t  j | ƒ Wd  QX|  j t j j | ƒ ƒ t j | ƒ t j | ƒ t j
 | d ƒ t  j	 t  d d ƒ � t  j | ƒ Wd  QX|  j t j j | ƒ ƒ d  S(   Nt   dt   subdirt   verbosei    (   R    R!   R$   R%   t   joint   mkdirt   rmtreeR#   R&   t	   swap_attrt   chmodt   statt   S_IRUSRt   S_IXUSR(   R   t   dirpatht
   subdirpath(    (    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_test_support.pyt   test_rmtreeA   s(    c         C   s´   t  d } t | d ƒ � } | j d ƒ Wd  QXt j j d t j ƒ zC t t  ƒ } |  j	 t  t j
 ƒ t j t  ƒ |  j t  t j
 ƒ Wd  t j d =t j | ƒ t j d ƒ Xd  S(   Ns   .pyt   wts   foo = 1
i    t   __pycache__(   R!   R    t   writeR   R%   t   insertR$   t   curdirt
   __import__R   R   R    t   forgetR   R"   R.   (   R   t   mod_filenameR'   t   mod(    (    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_test_support.pyt   test_forgetY   s    

c         C   s0   t  j  ƒ  } | j t j d f ƒ | j ƒ  d  S(   Ni    (   t   sockett   bindR    t   HOSTt   close(   R   t   s(    (    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_test_support.pyt	   test_HOSTi   s    c         C   s<   t  j ƒ  } t j ƒ  } | j t  j | f ƒ | j ƒ  d  S(   N(   R    t   find_unused_portRA   RB   RC   RD   (   R   t   portRE   (    (    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_test_support.pyt   test_find_unused_portn   s    c         C   s4   t  j  ƒ  } t j | ƒ | j d ƒ | j ƒ  d  S(   Ni   (   RA   R    t	   bind_portt   listenRD   (   R   RE   (    (    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_test_support.pyt   test_bind_portt   s    c         C   s¿   t  j ƒ  } t j j | ƒ } zŒ t j j | d ƒ } |  j t j j | ƒ ƒ t j	 | ƒ �0 } |  j
 | | ƒ |  j t j j | ƒ ƒ Wd QX|  j t j j | ƒ ƒ Wd t j | ƒ Xd S(   s8   Test that temp_dir() creates and destroys its directory.t   tempN(   t   tempfilet   mkdtempR$   R%   t   realpathR,   R#   t   isdirR    t   temp_dirR   t
   assertTrueR.   (   R   t
   parent_dirR%   t	   temp_path(    (    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_test_support.pyt   test_temp_dir|   s    c         C   sK   t  j ƒ  �  } |  j t j j | ƒ ƒ Wd QX|  j t j j | ƒ ƒ d S(   s   Test passing no path.N(   R    RR   RS   R$   R%   RQ   R#   (   R   RU   (    (    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_test_support.pyt   test_temp_dir__path_none‹   s    c         C   s­   d „  } t  j ƒ  } t j j | ƒ } zq |  j t j j | ƒ ƒ |  j t ƒ � } | | ƒ Wd QX|  j	 | j
 j t j ƒ |  j t j j | ƒ ƒ Wd t j | ƒ Xd S(   s-   Test passing a directory that already exists.c         S   s(   t  j |  ƒ � } t d ƒ ‚ Wd  QXd  S(   Ns   should not get here(   R    RR   t	   Exception(   R%   RU   (    (    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_test_support.pyt   call_temp_dir“   s    N(   RN   RO   R$   R%   RP   RS   RQ   R
   t   OSErrorR   t	   exceptiont   errnot   EEXISTt   shutilR.   (   R   RY   R%   t   cm(    (    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_test_support.pyt*   test_temp_dir__existing_dir__quiet_default‘   s    	c         C   sÕ   t  j ƒ  } t j j | ƒ } z… t j ƒ  �Z } t j | d t ƒ� } |  j	 | | ƒ Wd QXg  | j
 D] } t | j ƒ ^ qh } Wd QX|  j t j j | ƒ ƒ Wd t j | ƒ Xd | g } |  j	 | | ƒ d S(   s=   Test passing a directory that already exists with quiet=True.t   quietNs+   tests may fail, unable to create temp dir: (   RN   RO   R$   R%   RP   R    t   check_warningsRR   t   TrueR   t   warningst   strt   messageRS   RQ   R^   R.   (   R   R%   t   recorderRU   R   Rd   t   expected(    (    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_test_support.pyt'   test_temp_dir__existing_dir__quiet_true£   s    +t   forks   test requires os.forkc         C   s   t  j d t j d ƒ ƒ d S(   s?   Test that a forked child process does not remove the directory.s   -csÞ  
            import os
            from test import support
            with support.temp_cwd() as temp_path:
                pid = os.fork()
                if pid != 0:
                    # parent process (child has pid == 0)

                    # wait for the child to terminate
                    (pid, status) = os.waitpid(pid, 0)
                    if status != 0:
                        raise AssertionError("Child process failed with exit "
                                             "status indication "
                                             "0x{:x}.".format(status))

                    # Make sure that temp_path is still present. When the child
                    # process leaves the 'temp_cwd'-context, the __exit__()-
                    # method of the context must not remove the temporary
                    # directory.
                    if not os.path.isdir(temp_path):
                        raise AssertionError("Child removed temp_path.")
        N(   R   t   assert_python_okt   textwrapt   dedent(   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_test_support.pyt   test_temp_dir__forked_childµ   s    c         C   sy   t  j ƒ  } t j ƒ  �E } t j | ƒ �- } |  j | | ƒ |  j t  j ƒ  | ƒ Wd  QXWd  QX|  j t  j ƒ  | ƒ d  S(   N(   R$   t   getcwdR    RR   t
   change_cwdR   (   R   t   original_cwdRU   t   new_cwd(    (    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_test_support.pyt   test_change_cwdÓ   s    "c      
   C   s”   t  j ƒ  } d „  } t j ƒ  �W } t  j j | d ƒ } |  j t ƒ � } | | ƒ Wd QX|  j | j	 j
 t
 j ƒ Wd QX|  j t  j ƒ  | ƒ d S(   s&   Test passing a non-existent directory.c         S   s(   t  j |  ƒ � } t d ƒ ‚ Wd  QXd  S(   Ns   should not get here(   R    Rp   RX   (   R%   Rr   (    (    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_test_support.pyt   call_change_cwdá   s    t   does_not_existN(   R$   Ro   R    RR   R%   R,   R
   RZ   R   R[   R\   t   ENOENT(   R   Rq   Rt   RT   t   non_existent_dirR_   (    (    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_test_support.pyt!   test_change_cwd__non_existent_dirÝ   s    	c   	      C   sÕ   t  j ƒ  } t j ƒ  �š } t  j j | d ƒ } t j ƒ  �p } t j | d t ƒ�- } |  j	 | | ƒ |  j	 t  j ƒ  | ƒ Wd QXg  | j
 D] } t | j ƒ ^ q� } Wd QXWd QXd | g } |  j	 | | ƒ d S(   s6   Test passing a non-existent directory with quiet=True.Ru   Ra   Ns)   tests may fail, unable to change CWD to: (   R$   Ro   R    RR   R%   R,   Rb   Rp   Rc   R   Rd   Re   Rf   (	   R   Rq   RT   t   bad_dirRg   Rr   R   Rd   Rh   (    (    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_test_support.pyt-   test_change_cwd__non_existent_dir__quiet_trueí   s    1c      	   C   s~   t  d } t j ƒ  �K } t j d | d t ƒ � Wd QXg  | j D] } t | j ƒ ^ qB } Wd QX|  j | d | g ƒ d S(   s0   Check the warning message when os.chdir() fails.t   _does_not_existR%   Ra   Ns)   tests may fail, unable to change CWD to: (	   R!   R    Rb   Rp   Rc   Rd   Re   Rf   R   (   R   R%   Rg   R   t   messages(    (    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_test_support.pyt   test_change_cwd__chdir_warningþ   s    
+c         C   sz   t  j ƒ  } t j d t ƒ �' |  j t  j j t  j ƒ  ƒ t ƒ Wd  QX|  j t  j j	 t ƒ ƒ |  j t  j ƒ  | ƒ d  S(   Nt   name(
   R$   Ro   R    t   temp_cwdR!   R   R%   t   basenameR#   R&   (   R   t   here(    (    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_test_support.pyt   test_temp_cwd	  s
    (c         C   s€   t  j ƒ  } t j d d ƒ �F } |  j | | ƒ |  j t  j j | ƒ ƒ |  j	 t  j ƒ  | ƒ Wd QX|  j	 t  j ƒ  | ƒ d S(   s    Test passing None to temp_cwd().R~   N(
   R$   Ro   R    R   t   Nonet   assertNotEqualRS   R%   RQ   R   (   R   Rq   Rr   (    (    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_test_support.pyt   test_temp_cwd__name_none  s    c         C   s2   |  j  t j i d d 6d d 6d d 6ƒ d ƒ d  S(   Ni   i   i   s   {1: 1, 2: 2, 3: 3}(   R   R    t   sortdict(   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_test_support.pyt   test_sortdict  s    c         C   sQ   t  j ƒ  } |  j t ƒ � } t j | d ƒ Wd  QX|  j | j j t j	 ƒ d  S(   NR   (
   R    t   make_bad_fdR
   RZ   R$   R9   R   R[   R\   t   EBADF(   R   t   fdR_   (    (    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_test_support.pyt   test_make_bad_fd  s    c         C   sF   t  j |  d d d d d ƒ|  j t ƒ � t  j |  d ƒ Wd  QXd  S(   Ns	   def classt   linenoi   t   offseti	   s   x=1(   R    t   check_syntax_errorR
   t   AssertionError(   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_test_support.pyt   test_check_syntax_error#  s    c         C   s3   d d  l  } t j d ƒ � | j d ƒ Wd  QXd  S(   Niÿÿÿÿt   asyncore(   t	   importlibR    t   CleanImportR	   (   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_test_support.pyt   test_CleanImport(  s    c         C   si   t  j d d ƒ �+ |  j d t j ƒ |  j d t j ƒ Wd  QX|  j d t j ƒ |  j d t j ƒ d  S(   NR   t   bar(   R    t   DirsOnSysPathR   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_test_support.pyt   test_DirsOnSysPath-  s
    c         C   s4   t  j ƒ  � } d GHWd  QX|  j | j ƒ  d ƒ d  S(   Nt   hellos   hello
(   R    t   captured_stdoutR   t   getvalue(   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_test_support.pyt   test_captured_stdout4  s    c         C   s<   t  j ƒ  � } t j d IJWd  QX|  j | j ƒ  d ƒ d  S(   NR˜   s   hello
(   R    t   captured_stderrR   t   stderrR   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_test_support.pyt   test_captured_stderr9  s    c         C   sL   t  j ƒ  �* } | j d ƒ | j d ƒ t ƒ  } Wd  QX|  j | d ƒ d  S(   Ns   hello
i    R˜   (   R    t   captured_stdinR9   t   seekt	   raw_inputR   (   R   t   stdint   captured(    (    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_test_support.pyt   test_captured_stdin>  s
    c         C   s   t  j ƒ  d  S(   N(   R    t
   gc_collect(   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_test_support.pyt   test_gc_collectF  s    c         C   s   |  j  t j ƒ  t ƒ d  S(   N(   t   assertIsInstanceR    t   python_is_optimizedt   bool(   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_test_support.pyt   test_python_is_optimizedI  s    c         C   s	  d d d „  ƒ  Y} | ƒ  } d | _  t j | d d ƒ �* } |  j | j  d ƒ |  j | d ƒ Wd  QX|  j | j  d ƒ t j | d d ƒ �' } |  j | j d ƒ |  j | ƒ Wd  QX|  j t | d ƒ ƒ t j | d d ƒ � | ` Wd  QX|  j t | d ƒ ƒ d  S(   Nt   Objc           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_test_support.pyR«   M  s   i   t   xi   t   y(    (   R¬   R    R/   R   R­   t   assertIsNoneR#   t   hasattr(   R   R«   t   objR¬   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_test_support.pyt   test_swap_attrL  s    		c         C   sé   i d d 6} t  j | d d ƒ �+ } |  j | d d ƒ |  j | d ƒ Wd  QX|  j | d d ƒ t  j | d d ƒ �( } |  j | d d ƒ |  j | ƒ Wd  QX|  j d | ƒ t  j | d d ƒ � | d =Wd  QX|  j d | ƒ d  S(   Ni   R¬   i   R­   (   R    t	   swap_itemR   R®   R   (   R   t   DR¬   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_test_support.pyt   test_swap_item]  s    c         C   s‰  d d d „  ƒ  Y} | d ƒ } | d ƒ } t  j t  d d  ƒ �Ct  j g  ƒ |  j t  j | ƒ ƒ |  j t  j | ƒ ƒ t  j d  ƒ |  j t  j | ƒ ƒ |  j t  j | ƒ ƒ t  j | j ƒ  g ƒ |  j t  j | ƒ ƒ |  j t  j | ƒ ƒ t  j d g ƒ |  j t  j | ƒ ƒ |  j t  j | ƒ ƒ t  j d g ƒ |  j t  j | ƒ ƒ |  j t  j | ƒ ƒ t  j d g ƒ |  j t  j | ƒ ƒ t  j d	 g ƒ |  j t  j | ƒ ƒ t  j d
 g ƒ |  j t  j | ƒ ƒ |  j t  j | ƒ ƒ t  j | j ƒ  | j ƒ  g ƒ |  j t  j | ƒ ƒ |  j t  j | ƒ ƒ t  j d d g ƒ |  j t  j | ƒ ƒ |  j t  j | ƒ ƒ Wd  QXd  S(   Nt   Testc           B   s   e  Z d  „  Z d „  Z RS(   c         S   s   | |  _  d  S(   N(   t   test_id(   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_test_support.pyt   __init__m  s    c         S   s   |  j  S(   N(   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_test_support.pyt   idp  s    (   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_test_support.pyRµ   l  s   	s"   test.test_os.FileTests.test_accesss'   test.test_os.Win32ErrorTests.test_chdirt   _match_test_funct   test_oss   test_*t	   filetestst	   FileTestss   *test_os.*.test_*t   test_accesst	   DONTMATCH(    (   R    R/   Rƒ   t   set_match_testsRS   t
   match_testR¸   R#   (   R   Rµ   R½   t
   test_chdir(    (    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_test_support.pyt   test_match_testk  s@    c         C   sZ   t  j ƒ  } t j t t j ƒ } z t  j ƒ  } Wd  t j | ƒ X|  j | | d ƒ d  S(   Ni   (   R    t   fd_countR$   R    t   __file__t   O_RDONLYRD   R   (   R   t   startRŠ   t   more(    (    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_test_support.pyt   test_fd_count¤  s    (+   R   R   R   R   R   R   t   skipR   R   R(   R6   R@   RF   RI   RL   RV   RW   R`   Ri   t
   skipUnlessR¯   R$   Rn   Rs   Rx   Rz   R}   R‚   R…   R‡   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_test_support.pyR      sH   														$	
																			9c          C   s   t  g }  t j |  Œ  d  S(   N(   R   R    t   run_unittest(   t   tests(    (    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_test_support.pyt	   test_mainÌ  s    	t   __main__(   R’   R^   R1   R   R$   R   RA   RN   Rl   R\   t   testR    t   test.supportR   R!   R   t   objectR   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_test_support.pyt   <module>   s&   	ÿ µ	