ó
ŒwÛjc           @   s†  d  d l  Z  d  d l m 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 Z d  d l Z d  d l Z d  d l Z d  d l Z y d  d l Z Wn e k
 rí e Z n Xd Z d e j d „ Z e j Z d Z e j Z y d  d l Z d  d l Z Wn e k
 rYe Z e Z n Xe j Z d Z d e  j f d „  ƒ  YZ d	 e  j f d
 „  ƒ  YZ d f  d „  ƒ  YZ  d e e  f d „  ƒ  YZ! d e e  f d „  ƒ  YZ" d e! f d „  ƒ  YZ# d e  j e  f d „  ƒ  YZ$ d e  j f d „  ƒ  YZ% e  j& e d ƒ d e# f d „  ƒ  Yƒ Z' e  j& e d ƒ d e" f d „  ƒ  Yƒ Z( e  j& e d ƒ d e! f d „  ƒ  Yƒ Z) e  j& e* e d ƒ d ƒ e  j& e d ƒ d  e$ f d! „  ƒ  Yƒ ƒ Z+ e  j& e d ƒ d" e! f d# „  ƒ  Yƒ Z, e  j& e d ƒ d$ e# f d% „  ƒ  Yƒ Z- d& e  j f d' „  ƒ  YZ. d( e- f d) „  ƒ  YZ/ d* e- f d+ „  ƒ  YZ0 d, e- f d- „  ƒ  YZ1 d. e2 f d/ „  ƒ  YZ3 d0 e3 e' f d1 „  ƒ  YZ4 d2 e  j f d3 „  ƒ  YZ5 e  j& e d ƒ d4 e e  f d5 „  ƒ  Yƒ Z6 e  j& e d ƒ d6 e e  f d7 „  ƒ  Yƒ Z7 d8 e  j f d9 „  ƒ  YZ8 d: e f d; „  ƒ  YZ9 d< e f d= „  ƒ  YZ: d> e  j f d? „  ƒ  YZ; e  j& e
 j< d@ k dA ƒ dB e  j f dC „  ƒ  Yƒ Z= e  j& e d ƒ dD e# f dE „  ƒ  Yƒ Z> dF Z? dG Z@ dH ZA dI „  ZB e  j& eB ƒ  dJ ƒ dK e  j f dL „  ƒ  Yƒ ZC e  j& eB ƒ  dJ ƒ dM e  j e  f dN „  ƒ  Yƒ ZD dO „  ZE eF dP k r‚eE ƒ  n  d S(Q   iÿÿÿÿN(   t   test_supportg      N@i    c         C   s_   y, t  j  | t  j ƒ } | j |  | f ƒ Wn t  j t  j f k
 rL t SX| j ƒ  t Sd S(   sZ   Try to bind a socket on the given host:port and return True
    if that has been possible.N(   t   sockett   SOCK_STREAMt   bindt   errort   gaierrort   Falset   closet   True(   t   hostt   portt   familyt   sock(    (    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_socket.pyt   try_address   s    
s   Michael Gilfix was here
t   SocketTCPTestc           B   s   e  Z d  „  Z d „  Z RS(   c         C   sD   t  j  t  j t  j ƒ |  _ t j |  j ƒ |  _ |  j j d ƒ d  S(   Ni   (   R   t   AF_INETR   t   servR    t	   bind_portR
   t   listen(   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_socket.pyt   setUp7   s    c         C   s   |  j  j ƒ  d  |  _  d  S(   N(   R   R   t   None(   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_socket.pyt   tearDown<   s    (   t   __name__t
   __module__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_socket.pyR   5   s   	t   SocketUDPTestc           B   s   e  Z d  „  Z d „  Z RS(   c         C   s4   t  j  t  j t  j ƒ |  _ t j |  j ƒ |  _ d  S(   N(   R   R   t
   SOCK_DGRAMR   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_socket.pyR   B   s    c         C   s   |  j  j ƒ  d  |  _  d  S(   N(   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_socket.pyR   F   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_socket.pyR   @   s   	t   ThreadableTestc           B   sM   e  Z d  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 RS(   s™  Threadable Test class

    The ThreadableTest class makes it easy to create a threaded
    client/server pair from an existing unit test. To create a
    new threaded class from an existing unit test, use multiple
    inheritance:

        class NewClass (OldClass, ThreadableTest):
            pass

    This class defines two new fixture functions with obvious
    purposes for overriding:

        clientSetUp ()
        clientTearDown ()

    Any new test functions within the class must then define
    tests in pairs, where the test name is preceded with a
    '_' to indicate the client portion of the test. Ex:

        def testFoo(self):
            # Server portion

        def _testFoo(self):
            # Client portion

    Any exceptions raised by the clients during their tests
    are caught and transferred to the main thread to alert
    the testing framework.

    Note, the server setup function cannot call any blocking
    functions that rely on the client thread during setup,
    unless serverExplicitReady() is called just before
    the blocking call (such as in setting up a client/server
    connection and performing the accept() in setUp().
    c         C   s4   |  j  |  _ |  j |  _ |  j |  _  |  j |  _ d  S(   N(   R   t   _ThreadableTest__setUpR   t   _ThreadableTest__tearDownt   _setUpt	   _tearDown(   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_socket.pyt   __init__p   s    c         C   s   |  j  j ƒ  d S(   sÿ   This method allows the server to explicitly indicate that
        it wants the client thread to proceed. This is useful if the
        server is about to execute a blocking routine that is
        dependent upon the client thread during its setup routine.N(   t   server_readyt   set(   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_socket.pyt   serverExplicitReadyw   s    c         C   sÐ   t  j ƒ  |  _ t  j ƒ  |  _ t  j ƒ  |  _ t j d ƒ |  _ |  j ƒ  } | j d ƒ } | | d } t	 |  d | ƒ } t
 j |  j | f ƒ |  _ |  j ƒ  |  j j ƒ  s¿ |  j j ƒ  n  |  j j ƒ  d  S(   Ni   t   .t   _(   t	   threadingt   EventR!   t   client_readyt   donet   Queuet   queuet   idt   rfindt   getattrt   threadt   start_new_threadt	   clientRunt   client_threadR   t   is_setR"   t   wait(   R   t
   methodnamet   it   test_method(    (    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_socket.pyR   ~   s    
c         C   sI   |  j  ƒ  |  j j ƒ  |  j j ƒ  sE |  j j ƒ  } |  j | ƒ n  d  S(   N(   R   R)   R4   R+   t   emptyt   gett   fail(   R   t   msg(    (    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_socket.pyR   ‘   s
    
c         C   s~   |  j  j ƒ  |  j ƒ  |  j j ƒ  t | ƒ s? t d ƒ ‚ n  y | ƒ  Wn# t k
 ro } |  j j	 | ƒ n X|  j
 ƒ  d  S(   Ns&   test_func must be a callable function.(   R!   R4   t   clientSetUpR(   R"   t   callablet	   TypeErrort	   ExceptionR+   t   putt   clientTearDown(   R   t	   test_funct   strerror(    (    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_socket.pyR1   ™   s    
c         C   s   t  d ƒ ‚ d  S(   Ns    clientSetUp must be implemented.(   t   NotImplementedError(   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_socket.pyR<   ¥   s    c         C   s   |  j  j ƒ  t j ƒ  d  S(   N(   R)   R"   R/   t   exit(   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_socket.pyRA   ¨   s    (
   R   R   t   __doc__R    R#   R   R   R1   R<   RA   (    (    (    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_socket.pyR   J   s   $						t   ThreadedTCPSocketTestc           B   s&   e  Z d  d „ Z d „  Z d „  Z RS(   t   runTestc         C   s$   t  j |  d | ƒt j |  ƒ d  S(   Nt
   methodName(   R   R    R   (   R   RI   (    (    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_socket.pyR    ®   s    c         C   s   t  j  t  j t  j ƒ |  _ d  S(   N(   R   R   R   t   cli(   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_socket.pyR<   ²   s    c         C   s'   |  j  j ƒ  d  |  _  t j |  ƒ d  S(   N(   RJ   R   R   R   RA   (   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_socket.pyRA   µ   s    	(   R   R   R    R<   RA   (    (    (    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_socket.pyRG   ¬   s   	t   ThreadedUDPSocketTestc           B   s&   e  Z d  d „ Z d „  Z d „  Z RS(   RH   c         C   s$   t  j |  d | ƒt j |  ƒ d  S(   NRI   (   R   R    R   (   R   RI   (    (    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_socket.pyR    ¼   s    c         C   s   t  j  t  j t  j ƒ |  _ d  S(   N(   R   R   R   RJ   (   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_socket.pyR<   À   s    c         C   s'   |  j  j ƒ  d  |  _  t j |  ƒ d  S(   N(   RJ   R   R   R   RA   (   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_socket.pyRA   Ã   s    	(   R   R   R    R<   RA   (    (    (    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_socket.pyRK   º   s   	t   SocketConnectedTestc           B   s8   e  Z d  d „ Z d „  Z d „  Z d „  Z d „  Z RS(   RH   c         C   s   t  j |  d | ƒd  S(   NRI   (   RG   R    (   R   RI   (    (    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_socket.pyR    Ê   s    c         C   s9   t  j |  ƒ |  j ƒ  |  j j ƒ  \ } } | |  _ d  S(   N(   RG   R   R#   R   t   acceptt   cli_conn(   R   t   connt   addr(    (    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_socket.pyR   Í   s    
c         C   s'   |  j  j ƒ  d  |  _  t j |  ƒ d  S(   N(   RN   R   R   RG   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_socket.pyR   Õ   s    	c         C   s6   t  j |  ƒ |  j j t |  j f ƒ |  j |  _ d  S(   N(   RG   R<   RJ   t   connectt   HOSTR
   t	   serv_conn(   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_socket.pyR<   Ú   s    c         C   s'   |  j  j ƒ  d  |  _  t j |  ƒ d  S(   N(   RS   R   R   RG   RA   (   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_socket.pyRA   ß   s    	(   R   R   R    R   R   R<   RA   (    (    (    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_socket.pyRL   È   s
   			t   SocketPairTestc           B   s8   e  Z d  d „ Z d „  Z d „  Z d „  Z d „  Z RS(   RH   c         C   s'   t  j j |  d | ƒt j |  ƒ d  S(   NRI   (   t   unittestt   TestCaseR    R   (   R   RI   (    (    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_socket.pyR    æ   s    c         C   s   t  j ƒ  \ |  _ |  _ d  S(   N(   R   t
   socketpairR   RJ   (   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_socket.pyR   ê   s    c         C   s   |  j  j ƒ  d  |  _  d  S(   N(   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_socket.pyR   í   s    c         C   s   d  S(   N(    (   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_socket.pyR<   ñ   s    c         C   s'   |  j  j ƒ  d  |  _  t j |  ƒ d  S(   N(   RJ   R   R   R   RA   (   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_socket.pyRA   ô   s    	(   R   R   R    R   R   R<   RA   (    (    (    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_socket.pyRT   ä   s
   			t   GeneralModuleTestsc           B   s$  e  Z e j e d. k	 d  ƒ 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 e j e e d ƒ d ƒ d „  ƒ Z e j e e d ƒ d ƒ d „  ƒ Z e j e e d ƒ d ƒ d „  ƒ Z e j e e d ƒ d ƒ d „  ƒ Z e j e e d ƒ d ƒ d „  ƒ Z d d „ Z d „  Z d „  Z d „  Z d  „  Z d! „  Z  d" „  Z! e j e" j# d# k d$ ƒ d% „  ƒ Z$ d& „  Z% d' „  Z& d( „  Z' d) „  Z( d* „  Z) e* j+ d+ „  ƒ Z, e j e- d, ƒ d- „  ƒ Z. RS(/   s   need _socket modulec         C   s›   t  j t  j t  j ƒ } z? d | j ƒ  | j | j | j f } |  j t	 | ƒ | ƒ Wd  | j
 ƒ  Xd | j | j | j f } |  j t	 | ƒ | ƒ d  S(   Ns7   <socket object, fd=%s, family=%s, type=%s, protocol=%s>s7   <socket object, fd=-1, family=%s, type=%s, protocol=%s>(   t   _socketR   R   R   t   filenoR   t   typet   protot   assertEqualt   reprR   (   R   t   st   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_socket.pyt   test_csocket_reprÿ   s    "c         C   s†   t  j  t  j t  j ƒ } t j | ƒ } |  j | j ƒ  | j ƒ  ƒ | j ƒ  d  } y | j ƒ  Wn t	 k
 rt n X|  j
 d ƒ d  S(   Ns   Socket proxy still exists(   R   R   R   t   weakreft   proxyR]   RZ   R   R   t   ReferenceErrorR:   (   R   R_   t   p(    (    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_socket.pyt   test_weakref  s    
c         C   sR   t  j  ƒ  j } t j | ƒ } |  j | ƒ  | ƒ ~ t j ƒ  |  j | ƒ  ƒ d  S(   N(   R   t   _sockRb   t   reft   assertIsR    t
   gc_collectt   assertIsNone(   R   R_   t   w(    (    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_socket.pyt   test_weakref__sock  s    
c         C   sa   d „  } d „  } d „  } |  j  t j | d ƒ |  j  t j | d ƒ |  j  t j | d ƒ d  S(   Nc          _   s   t  j ‚ d  S(   N(   R   R   (   t   argst   kwargs(    (    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_socket.pyt   raise_error#  s    c          _   s   t  j ‚ d  S(   N(   R   t   herror(   Rn   Ro   (    (    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_socket.pyt   raise_herror%  s    c          _   s   t  j ‚ d  S(   N(   R   R   (   Rn   Ro   (    (    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_socket.pyt   raise_gaierror'  s    s   Error raising socket exception.(   t   assertRaisesR   R   (   R   Rp   Rr   Rs   (    (    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_socket.pyt   testSocketError!  s    			c         C   s«  t  j  t  j t  j ƒ } |  j | j ƒ | j d ƒ | j ƒ  } |  j t ƒ � | j	 d | ƒ Wd  QX|  j t
 ƒ � } | j	 d | ƒ Wd  QX|  j d t | j ƒ ƒ |  j t
 ƒ � } | j	 d d  ƒ Wd  QX|  j d t | j ƒ ƒ |  j t ƒ � | j	 d d | ƒ Wd  QX|  j t
 ƒ � } | j	 d d | ƒ Wd  QX|  j d t | j ƒ ƒ |  j t
 ƒ � } | j	 d d d  ƒ Wd  QX|  j d t | j ƒ ƒ |  j t
 ƒ � } | j	 d d | ƒ Wd  QX|  j d	 t | j ƒ ƒ |  j t
 ƒ � } | j	 d d  d  ƒ Wd  QX|  j d	 t | j ƒ ƒ |  j t
 ƒ � } | j	 d ƒ Wd  QX|  j d
 t | j ƒ ƒ |  j t
 ƒ � } | j	 d d | d ƒ Wd  QX|  j d t | j ƒ ƒ d  S(   Nt    i    u   â˜ y              @s   not complext   foos   not NoneTypet   bars   an integer is requireds	   (1 given)i   s	   (4 given)(   Rv   i    (   R   R   R   t
   addCleanupR   R   t   getsocknameRt   t   UnicodeEncodeErrort   sendtoR>   t   assertInt   strt	   exceptionR   (   R   R_   t   socknamet   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_socket.pyt   testSendtoErrors0  s@    c         C   s<   t  j t  j t  j t  j t  j t  j t  j t  j d  S(   N(	   R   R   R   R   t   SOCK_RAWt   SOCK_RDMt   SOCK_SEQPACKETt
   SOL_SOCKETt   SO_REUSEADDR(   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_socket.pyt   testCrucialConstantsW  s    c         C   sñ   t  j ƒ  } y t  j | ƒ } Wn! t  j k
 rB |  j d ƒ n X|  j | j d ƒ d k d ƒ y t  j | ƒ \ } } } Wn! t  j k
 r¡ |  j d ƒ n X| | g | } t  j | ƒ } | | k rí |  j	 d | t
 | ƒ f ƒ n  d  S(   Ns   name lookup failureR$   i    s   Error resolving host to ip.s   address lookup failures=   Error testing host resolution mechanisms. (fqdn: %s, all: %s)(   R   t   gethostnamet   gethostbynameR   t   skipTestt
   assertTruet   findt   gethostbyaddrt   getfqdnR:   R^   (   R   t   hostnamet   ipt   hnamet   aliasest   ipaddrst   all_host_namest   fqhn(    (    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_socket.pyt   testHostnameResb  s    t   getrefcounts   test needs sys.getrefcount()c         C   sW   y# t  j t ƒ } t j t d ƒ Wn- t k
 rR |  j t  j t ƒ | d ƒ n Xd  S(   Ni    s$   socket.getnameinfo loses a reference(   t   sysR˜   R   R   t   getnameinfoR>   R]   (   R   t   orig(    (    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_socket.pyt   testRefCountGetNameInfou  s    c         C   s/   y t  j d d ƒ Wn t  j k
 r* n Xd  S(   Nt   xi    (   R�   i    i    i    (   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_socket.pyt   testInterpreterCrash�  s    c         C   sÞ   i d t  j 6d t  j 6d t  j 6d t  j 6} x© | j ƒ  D]› \ } } d | >d } xK d d d d d d d	 f D]. } |  j | | @| | | | @ƒ ƒ | @ƒ qq W| | ƒ } |  j | | @| ƒ |  j t | d ƒ q; Wd  S(   Ni    i   l    i   i    iÿÿ  i   igE#i2Tvi"   i  ÿÿl        (	   R   t   htonlt   ntohlt   htonst   ntohst   itemsR]   Rt   t   OverflowError(   R   t   sizest   funct   sizet   maskR6   t   swapped(    (    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_socket.pyt   testNtoH‰  s    ",c         C   sâ   d d d d d d g } d d d	 d
 d d g } xB | D]: } t  j | ƒ t  j | ƒ t  j | ƒ t  j | ƒ q7 Wxf | D]^ } |  j t t  j | ƒ |  j t t  j | ƒ |  j t t  j | ƒ |  j t t  j | ƒ q| Wd  S(   Ni   i   i   l    l    l    iÿÿÿÿiþÿÿÿiýÿÿÿlÿÿÿÿ lÿÿÿÿ lÿÿÿÿ (   R   R    R¢   RŸ   R¡   Rt   R¤   (   R   t   good_valuest
   bad_valuest   k(    (    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_socket.pyt   testNtoHErrors—  s    c         C   sˆ  |  j  } t j j d ƒ sN t j j d ƒ sN t j j d ƒ sN t j d k rW d } n d } xE | D]4 } y t j | d	 ƒ } PWqd t j k
 r— qd Xqd Wt j ‚ t j | ƒ } | | | ƒ y t j | d
 ƒ } Wn t j k
 ró d  } n X| | | ƒ | t j | ƒ | ƒ | t j | d	 ƒ | ƒ | d  k	 rX| t j | d
 ƒ | ƒ n  |  j	 t
 t j d ƒ |  j	 t
 t j d ƒ d  S(   Nt   linuxt   freebsdt   netbsdt   darwint   daytimet   qotdt   domaint   echot   tcpt   udpiÿÿÿÿi   (   R³   R´   Rµ   (   R¶   R³   Rµ   (   R]   R™   t   platformt
   startswithR   t   getservbynameR   R   t   getservbyportRt   R¤   (   R   t   eqt   servicest   serviceR
   t   port2t   udpport(    (    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_socket.pyt   testGetServBy¥  s6    			
c         C   s  |  j  t j ƒ  d  ƒ t j ƒ  } |  j  | j ƒ  d  ƒ | j ƒ  t j d ƒ |  j  t j ƒ  d ƒ t j ƒ  } |  j  | j ƒ  d ƒ | j ƒ  t j d  ƒ |  j  t j ƒ  d  ƒ t j ƒ  } |  j  | j ƒ  d  ƒ | j ƒ  |  j t t j d ƒ |  j t	 t j d ƒ d  S(   Ni
   iÿÿÿÿt   spam(
   R]   R   t   getdefaulttimeoutR   t
   gettimeoutR   t   setdefaulttimeoutRt   t
   ValueErrorR>   (   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_socket.pyt   testDefaultTimeoutÎ  s     


t	   inet_atons   test needs socket.inet_aton()c         C   s6   |  j  d t j d ƒ ƒ |  j  d t j d ƒ ƒ d  S(   Ns    i   s   0.0.0.0s   ÿs   255.255.255.255s       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_socket.pyt   testIPv4_inet_aton_fourbytesê  s    t	   inet_ptons   test needs socket.inet_pton()c            sø   d d l  m } m ‰ m ‰  ‡  ‡ f d †  } |  j d | d ƒ ƒ |  j d | d ƒ ƒ |  j d | d	 ƒ ƒ |  j d
 | d ƒ ƒ |  j d | d ƒ ƒ |  j d | d ƒ ƒ |  j d | d ƒ ƒ |  j d | d	 ƒ ƒ |  j d | d ƒ ƒ d  S(   Niÿÿÿÿ(   RÉ   RË   R   c            s   ˆ ˆ  |  ƒ S(   N(    (   t   a(   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_socket.pyt   <lambda>ö  Rv   s       s   0.0.0.0s   ÿ ÿ s   255.0.255.0s   ªªªªs   170.170.170.170s   s   1.2.3.4s   ÿÿÿÿs   255.255.255.255(   R   RÉ   RË   R   R]   (   R   t   ft   g(    (   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_socket.pyt   testIPv4toStringò  s    c            sÉ   y6 d d l  m ‰ m ‰  m } | s5 |  j d ƒ n  Wn t k
 rV |  j d ƒ n X‡  ‡ f d †  } |  j d | d ƒ ƒ |  j d | d	 ƒ ƒ |  j d
 d | d ƒ ƒ |  j d | d ƒ ƒ d  S(   Niÿÿÿÿ(   RË   t   AF_INET6t   has_ipv6s   IPv6 not availables+   could not import needed symbols from socketc            s   ˆ ˆ  |  ƒ 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_socket.pyRÍ     Rv   s    i   s   ::s   0::0s    i   s   1::s   EïvË Vï¯ë¬$®®s$   45ef:76cb:1a:56ef:afeb:bac:1924:aeaes                   s                   s                 (   R   RË   RÑ   RÒ   R‹   t   ImportErrorR]   (   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_socket.pyt   testIPv6toString  s    t	   inet_ntops   test needs socket.inet_ntop()c            sÌ   d d l  m } m ‰ m ‰  ‡  ‡ f d †  } |  j d | d ƒ ƒ |  j d | d ƒ ƒ |  j d | d	 ƒ ƒ |  j d
 | d ƒ ƒ |  j d | d ƒ ƒ |  j d | d ƒ ƒ |  j d | d	 ƒ ƒ d  S(   Niÿÿÿÿ(   t	   inet_ntoaRÕ   R   c            s   ˆ ˆ  |  ƒ 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_socket.pyRÍ     Rv   s   1.0.1.0s     s   170.85.170.85s   ªUªUs   255.255.255.255s   ÿÿÿÿs   1.2.3.4s   (   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_socket.pyt   testStringToIPv4  s    c            s¯   y6 d d l  m ‰ m ‰  m } | s5 |  j d ƒ n  Wn t k
 rV |  j d ƒ n X‡  ‡ f d †  } |  j d | d ƒ ƒ |  j d	 | d ƒ ƒ |  j d | d ƒ ƒ d  S(   Niÿÿÿÿ(   RÕ   RÑ   RÒ   s   IPv6 not availables+   could not import needed symbols from socketc            s   ˆ ˆ  |  ƒ 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_socket.pyRÍ   .  Rv   s   ::s    i   s   ::1i   s   s!   aef:b01:506:1001:ffff:9997:55:170s   
ïÿÿ™— Ups                   s                  s                  (   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_socket.pyt   testStringToIPv6%  s    s   0.0.0.0c         C   s?   t  j  ƒ  } | j | d f ƒ | j ƒ  \ } } | j ƒ  | S(   sÏ   Use a temporary socket to elicit an unused ephemeral port.

        Args:
            bind_address: Hostname or IP address to search for a port on.

        Returns: A most likely to be unused port.
        i    (   R   R   Rz   R   (   R   t   bind_addresst   tempsockR	   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_socket.pyt   _get_unused_port9  s
    
c         C   sÍ   |  j  ƒ  } t j t j t j ƒ } |  j | j ƒ | j d | f ƒ | j ƒ  } y t j t j	 ƒ  ƒ } Wn! t j
 k
 r� |  j d ƒ n X|  j | d d | f d | d ƒ |  j | d | ƒ d  S(   Ns   0.0.0.0s   name lookup failurei    s
   %s invalidi   (   RÛ   R   R   R   Ry   R   R   Rz   RŠ   R‰   R   R‹   R}   R]   (   R   R
   R   t   namet
   my_ip_addr(    (    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_socket.pyt   testSockNameG  s    %c         C   sZ   t  j  t  j t  j ƒ } |  j | j ƒ | j t  j t  j ƒ } |  j | d k d ƒ d  S(   Ni    s   initial mode is reuse(	   R   R   R   Ry   R   t
   getsockoptR†   R‡   t   assertFalse(   R   R   t   reuse(    (    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_socket.pyt   testGetSockOptY  s    c         C   ss   t  j  t  j t  j ƒ } |  j | j ƒ | j t  j t  j d ƒ | j t  j t  j ƒ } |  j	 | d k d ƒ d  S(   Ni   i    s   failed to set reuse mode(
   R   R   R   Ry   R   t
   setsockoptR†   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_socket.pyt   testSetSockOpta  s
    c         C   sL   t  j  t  j t  j ƒ } | j d ƒ | j ƒ  |  j t  j | j d ƒ d  S(   Ni   RÃ   (   R   R   R   t
   settimeoutR   Rt   R   t   send(   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_socket.pyt   testSendAfterClosei  s    
c         C   se   t  j  t  j t  j ƒ } |  j | j t  j ƒ |  j | j t  j ƒ |  j | j d ƒ | j ƒ  d  S(   Ni    (   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_socket.pyt   testNewAttributesp  s
    c         C   sí   t  j  ƒ  } |  j | j ƒ t j ƒ  } | d } | d } |  j t | j t | f ƒ |  j t | j t | f ƒ xr t	 j
 ƒ  D]d } t j ƒ  } y | j t | f ƒ Wn7 t k
 rã } | j t j k sÚ | d k rå ‚  qå q� XPq� Wd  S(   Ni   i   (   R   Ry   R   R    t   find_unused_portRt   R¤   R   RR   t	   itertoolst   countt   OSErrort   errnot
   EADDRINUSE(   R   R   R
   t   big_portt   neg_portR6   t   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_socket.pyt   test_getsockaddrargx  s    


t   nts   Windows specificc         C   s½   |  j  t t j d ƒ ƒ |  j  t t d ƒ ƒ |  j  t t d ƒ ƒ |  j  t t d ƒ ƒ |  j  t t d ƒ ƒ t j ƒ  } |  j | j ƒ |  j t | j d d  ƒ | j t j	 d	 ƒ d  S(
   Nt   ioctlt
   SIO_RCVALLt	   RCVALL_ONt
   RCVALL_OFFt   SIO_KEEPALIVE_VALSiÿÿÿÿi   id   (   i   id   id   (
   RŒ   t   hasattrR   Ry   R   Rt   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_socket.pyt   test_sock_ioctlŒ  s    c         C   sW  y t  j d d ƒ Wn; t  j k
 rQ } | j t  j k rK |  j d ƒ n  ‚  n Xx0 t  j t d  ƒ D] } |  j t	 | ƒ d ƒ qe Wt  j d d ƒ t  j d d ƒ t  j d  d ƒ t
 rÎ t  j d d ƒ n  t  j t d ƒ t  j t d ƒ t  j t d ƒ t  j t d  ƒ t  j t d  t  j ƒ } x0 | D]( \ } } } } } |  j | t  j ƒ q-Wt  j t d  d	 t  j ƒ } x0 | D]( \ } } } } } |  j | t  j ƒ q{Wt  j t d  d	 d	 t  j ƒ t  j t d  d	 d	 d	 t  j ƒ t  j d  d	 t  j t  j d	 t  j ƒ t t  d
 ƒ rSy# t  j d d  d	 d	 d	 t  j ƒ WqSt  j k
 rOqSXn  d  S(   Nt	   localhostiP   s   buggy libc versioni   s	   127.0.0.1s   ::1t   httpl   P i    t   AI_NUMERICSERV(   R   t   getaddrinfoR   Rí   t   EAI_SERVICER‹   RR   R   R]   t   lent   SUPPORTS_IPV6R   R   t   SOL_TCPt
   AI_PASSIVEt	   AF_UNSPECRù   Rý   (   R   t   errt   infot   infosR   R%   t   socktype(    (    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_socket.pyt   testGetaddrinfo˜  sB    
c            sK  t  t d ƒ s  t  t d ƒ r0 ˆ  j d ƒ n  ‡  f d †  } ‡  f d †  } t j ƒ  \ } } t j t j | ƒ } zš | rŽ | j d ƒ n  ˆ  j t ƒ �& t j	 d ƒ | j
 d t j ƒ Wd  QX| rt j t j | ƒ t j	 d ƒ ˆ  j t j | j
 d t j ƒ n  Wd  t j	 d	 ƒ t j t j | ƒ | j ƒ  | j ƒ  Xd  S(
   Nt   alarmRW   s9   signal.alarm and socket.socketpair required for this testc             s   ˆ  j  t t j d ƒ d  S(   Ni    (   Rt   RÇ   t   matht   acosh(   Rn   (   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_socket.pyt
   ok_handlerÏ  s    c             s"   ˆ  j  t t j d ƒ d d d  S(   Ni    i   (   Rt   RÇ   R  R  (   Rn   (   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_socket.pyt   raising_handlerÑ  s    g      ø?i   R�   i    (   Rù   t   signalR   R‹   RW   t   SIGALRMRå   Rt   t   ZeroDivisionErrorR
  t   sendallR    t   SOCK_MAX_SIZEt   timeoutR   (   R   t   with_timeoutR  R  t   cR_   t	   old_alarm(    (   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_socket.pyt   check_sendall_interruptedÉ  s*     
c         C   s   |  j  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_socket.pyt   test_sendall_interruptedè  s    c         C   s   |  j  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_socket.pyt%   test_sendall_interrupted_with_timeoutë  s    c         C   sW   xP d D]H } t  j  t  j t  j ƒ } | j t d f ƒ | j | ƒ | j ƒ  q Wd  S(   Ni    iÿÿÿÿ(   i    iÿÿÿÿ(   R   R   R   R   RR   R   R   (   R   t   backlogt   srv(    (    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_socket.pyt   test_listen_backlogî  s
    c         C   sb   d d  l  } t j t j t j ƒ } | j t d f ƒ |  j t | j | j	 d ƒ | j
 ƒ  d  S(   Niÿÿÿÿi    i   (   t	   _testcapiR   R   R   R   RR   Rt   R¤   R   t   INT_MAXR   (   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_socket.pyt   test_listen_backlog_overflowõ  s
    s   IPv6 required for this test.c         C   s]   |  j  t t j d d ƒ t j t j t j ƒ } z |  j  t | j d ƒ Wd  | j ƒ  Xd  S(   Ns   ::1i    Iÿÿÿÿ    iöÿÿÿ(   s   ::1i    Iÿÿÿÿ    (   s   ::1i    iöÿÿÿ(   Rt   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_socket.pyt   test_flowinfoþ  s    
N(/   R   R   RU   t
   skipUnlessRY   R   Ra   Rf   Rm   Ru   R‚   Rˆ   R—   Rù   R™   Rœ   Rž   Rª   R®   RÂ   RÈ   R   RÊ   RÐ   RÔ   R×   RØ   RÛ   RÞ   Râ   Rä   Rç   Rè   Rò   t   osRÜ   Rú   R	  R  R  R  R  R    t   cpython_onlyR   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_socket.pyRX   ý   sN   !				'						)							$	1					s!   Threading required for this test.t   BasicTCPTestc           B   sà   e  Z d  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 e j e ƒ Z e j d „  ƒ Z RS(   RH   c         C   s   t  j |  d | ƒd  S(   NRI   (   RL   R    (   R   RI   (    (    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_socket.pyR      s    c         C   s&   |  j  j d ƒ } |  j | t ƒ d  S(   Ni   (   RN   t   recvR]   t   MSG(   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_socket.pyt   testRecv  s    c         C   s   |  j  j t ƒ d  S(   N(   RS   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_socket.pyt	   _testRecv  s    c         C   sL   |  j  j t t ƒ d ƒ } |  j  j d ƒ } | | } |  j | t ƒ d  S(   Ni   i   (   RN   R&  R   R'  R]   (   R   t   seg1t   seg2R;   (    (    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_socket.pyt   testOverFlowRecv  s    
c         C   s   |  j  j t ƒ d  S(   N(   RS   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_socket.pyt   _testOverFlowRecv  s    c         C   s,   |  j  j d ƒ \ } } |  j | t ƒ d  S(   Ni   (   RN   t   recvfromR]   R'  (   R   R;   RP   (    (    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_socket.pyt   testRecvFrom!  s    c         C   s   |  j  j t ƒ d  S(   N(   RS   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_socket.pyt   _testRecvFrom&  s    c         C   sX   |  j  j t t ƒ d ƒ \ } } |  j  j d ƒ \ } } | | } |  j | t ƒ d  S(   Ni   i   (   RN   R.  R   R'  R]   (   R   R*  RP   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_socket.pyt   testOverFlowRecvFrom)  s    "
c         C   s   |  j  j t ƒ d  S(   N(   RS   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_socket.pyt   _testOverFlowRecvFrom0  s    c         C   sK   d } x* |  j  j d ƒ } | s% Pn  | | 7} q	 W|  j | d d ƒ d  S(   NRv   i   RÎ   i   (   RN   R&  R]   (   R   R;   t   read(    (    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_socket.pyt   testSendAll3  s    c         C   s   d d } |  j  j | ƒ d  S(   NRÎ   i   (   RS   R  (   R   t	   big_chunk(    (    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_socket.pyt   _testSendAll=  s    
t   fromfds   socket.fromfd not availablec         C   s]   |  j  j ƒ  } t j | t j t j ƒ } |  j | j ƒ | j d ƒ } |  j	 | t
 ƒ d  S(   Ni   (   RN   RZ   R   R7  R   R   Ry   R   R&  R]   R'  (   R   t   fdR   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_socket.pyt
   testFromFdA  s
    c         C   s   |  j  j t ƒ d  S(   N(   RS   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_socket.pyt   _testFromFdK  s    c         C   sB   |  j  j ƒ  } |  j | j ƒ | j d ƒ } |  j | t ƒ d  S(   Ni   (   RN   t   dupRy   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_socket.pyt   testDupN  s    c         C   s   |  j  j t ƒ d  S(   N(   RS   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_socket.pyt   _testDupU  s    c         C   s3   |  j  j d ƒ } |  j | t ƒ |  j j ƒ  d  S(   Ni   (   RN   R&  R]   R'  R)   R4   (   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_socket.pyt   testShutdownX  s    c         C   s$   |  j  j t ƒ |  j  j d ƒ d  S(   Ni   (   RS   Ræ   R'  t   shutdown(   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_socket.pyt   _testShutdowna  s    c         C   st   d d  l  } |  j j t ƒ |  j t |  j j | j d ƒ |  j t |  j j d | j d ƒ |  j j d ƒ d  S(   Niÿÿÿÿi   i   (	   R  RS   Ræ   R'  Rt   R¤   R?  R  t   UINT_MAX(   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_socket.pyt   _testShutdown_overflowg  s    (   R   R   R    R(  R)  R,  R-  R/  R0  R1  R2  R4  R6  RU   R"  Rù   R   R9  R:  R<  R=  R>  R@  R    R$  t   testShutdown_overflowRB  (    (    (    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_socket.pyR%  	  s(   									
								t   BasicUDPTestc           B   sJ   e  Z d  d „ Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   RH   c         C   s   t  j |  d | ƒd  S(   NRI   (   RK   R    (   R   RI   (    (    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_socket.pyR    u  s    c         C   s,   |  j  j t t ƒ ƒ } |  j | t ƒ d  S(   N(   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_socket.pyt   testSendtoAndRecvx  s    c         C   s#   |  j  j t d t |  j f ƒ d  S(   Ni    (   RJ   R|   R'  RR   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_socket.pyt   _testSendtoAndRecv}  s    c         C   s2   |  j  j t t ƒ ƒ \ } } |  j | t ƒ d  S(   N(   R   R.  R   R'  R]   (   R   R;   RP   (    (    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_socket.pyR/  €  s    c         C   s#   |  j  j t d t |  j f ƒ d  S(   Ni    (   RJ   R|   R'  RR   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_socket.pyR0  …  s    c         C   s   |  j  t |  j j d ƒ d  S(   Niÿÿÿÿ(   Rt   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_socket.pyt   testRecvFromNegativeˆ  s    c         C   s#   |  j  j t d t |  j f ƒ d  S(   Ni    (   RJ   R|   R'  RR   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_socket.pyt   _testRecvFromNegativeŒ  s    (	   R   R   R    RE  RF  R/  R0  RG  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_socket.pyRD  r  s   					t   TCPCloserTestc           B   s   e  Z d  „  Z d „  Z RS(   c         C   s|   |  j  j ƒ  \ } } | j ƒ  |  j } t j | g g  g  d ƒ \ } } } |  j | | g ƒ |  j | j d ƒ d ƒ d  S(   Ng      ð?i   Rv   (   R   RM   R   RJ   t   selectR]   R&  (   R   RO   RP   t   sdR3  t   writeR  (    (    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_socket.pyt	   testClose’  s    
	$c         C   s*   |  j  j t |  j f ƒ t j d ƒ d  S(   Ng      ð?(   RJ   RQ   RR   R
   t   timet   sleep(   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_socket.pyt
   _testClose›  s    (   R   R   RM  RP  (    (    (    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_socket.pyRI  �  s   		RW   s   test needs socket.socketpair()t   BasicSocketPairTestc           B   s8   e  Z d  d „ Z d „  Z d „  Z d „  Z d „  Z RS(   RH   c         C   s   t  j |  d | ƒd  S(   NRI   (   RT   R    (   R   RI   (    (    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_socket.pyR    ¤  s    c         C   s&   |  j  j d ƒ } |  j | t ƒ d  S(   Ni   (   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_socket.pyR(  §  s    c         C   s   |  j  j t ƒ d  S(   N(   RJ   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_socket.pyR)  «  s    c         C   s   |  j  j t ƒ d  S(   N(   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_socket.pyt   testSend®  s    c         C   s&   |  j  j d ƒ } |  j | t ƒ d  S(   Ni   (   RJ   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_socket.pyt	   _testSend±  s    (   R   R   R    R(  R)  RR  RS  (    (    (    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_socket.pyRQ  Ÿ  s
   			t   NonBlockingTCPTestsc           B   s}   e  Z d  d „ Z d „  Z d „  Z e j d „  ƒ Z e j e ƒ Z d „  Z	 d „  Z
 d „  Z d „  Z d	 „  Z d
 „  Z RS(   RH   c         C   s&   t  j ƒ  |  _ t j |  d | ƒd  S(   NRI   (   R&   R'   t   eventRG   R    (   R   RI   (    (    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_socket.pyR    ¸  s    c         C   s­   |  j  j t ƒ |  j |  j  j ƒ  ƒ |  j  j t ƒ |  j |  j  j ƒ  d ƒ t j ƒ  } y |  j  j ƒ  Wn t	 j
 k
 r‚ n Xt j ƒ  } |  j | | d k  d ƒ d  S(   Ng        g      ð?s    Error setting non-blocking mode.(   R   t   setblockingR   Rk   RÅ   R   R]   RN  RM   R   R   RŒ   (   R   t   startt   end(    (    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_socket.pyt   testSetBlocking¼  s    c         C   s   d  S(   N(    (   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_socket.pyt   _testSetBlockingÊ  s    c         C   sˆ   d d  l  } | j | j k r. |  j d ƒ n  |  j j t ƒ |  j |  j j ƒ  d ƒ |  j j | j d ƒ |  j	 |  j j ƒ  ƒ d  S(   Niÿÿÿÿs   needs UINT_MAX < ULONG_MAXg        i   (
   R  RA  t	   ULONG_MAXR‹   R   RV  R   R]   RÅ   Rk   (   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_socket.pyt   testSetBlocking_overflowÍ  s    c         C   sÍ   |  j  j d ƒ |  j t j ƒ � |  j  j ƒ  \ } } Wd  QX|  j j ƒ  t j |  j  g g  g  t	 ƒ \ } } } |  j  | k r‘ |  j
 d ƒ n  |  j  j ƒ  \ } } |  j | j ƒ |  j | j ƒ  ƒ d  S(   Ni    s'   Error trying to do accept after select.(   R   RV  Rt   R   R   RM   RU  R"   RJ  t   MAIN_TIMEOUTR:   Ry   R   Rk   RÅ   (   R   RO   RP   R3  RL  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_socket.pyt
   testAcceptÚ  s    'c         C   s*   |  j  j ƒ  |  j j t |  j f ƒ d  S(   N(   RU  R4   RJ   RQ   RR   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_socket.pyt   _testAcceptí  s    c         C   s#   |  j  j ƒ  \ } } | j ƒ  d  S(   N(   R   RM   R   (   R   RO   RP   (    (    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_socket.pyt   testConnectô  s    c         C   s-   |  j  j d ƒ |  j  j t |  j f ƒ d  S(   Ni
   (   RJ   Rå   RQ   RR   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_socket.pyt   _testConnectù  s    c         C   sÖ   |  j  j ƒ  \ } } |  j | j ƒ | j d ƒ |  j t j ƒ � | j t	 t
 ƒ ƒ } Wd  QX|  j j ƒ  t j | g g  g  t ƒ \ } } } | | k r­ |  j d ƒ n  | j t	 t
 ƒ ƒ } |  j | t
 ƒ d  S(   Ni    s0   Error during select call to non-blocking socket.(   R   RM   Ry   R   RV  Rt   R   R   R&  R   R'  RU  R"   RJ  R]  R:   R]   (   R   RO   RP   R;   R3  RL  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_socket.pyR(  ý  s    $c         C   s:   |  j  j t |  j f ƒ |  j j ƒ  |  j  j t ƒ d  S(   N(   RJ   RQ   RR   R
   RU  R4   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_socket.pyR)    s    (   R   R   R    RY  RZ  R    R$  R\  t   _testSetBlocking_overflowR^  R_  R`  Ra  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_socket.pyRT  µ  s   							t   FileObjectClassTestCasec           B   s¼   e  Z d  Z 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 RS(   iÿÿÿÿRH   c         C   s   t  j |  d | ƒd  S(   NRI   (   RL   R    (   R   RI   (    (    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_socket.pyR       s    c         C   s,   t  j |  ƒ |  j j d |  j ƒ |  _ d  S(   Nt   rb(   RL   R   RN   t   makefilet   bufsizet	   serv_file(   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_socket.pyR   #  s    c         C   s:   |  j  j ƒ  |  j |  j  j ƒ t j |  ƒ d  |  _  d  S(   N(   Rg  R   RŒ   t   closedRL   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_socket.pyR   '  s    c         C   s&   t  j |  ƒ |  j j d ƒ |  _ d  S(   Nt   wb(   RL   R<   RS   Re  t   cli_file(   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_socket.pyR<   -  s    c         C   s:   |  j  j ƒ  |  j |  j  j ƒ d  |  _  t j |  ƒ d  S(   N(   Rj  R   RŒ   Rh  R   RL   RA   (   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_socket.pyRA   1  s    	c         C   sL   |  j  j t t ƒ d ƒ } |  j  j d ƒ } | | } |  j | t ƒ d  S(   Ni   (   Rg  R3  R   R'  R]   (   R   t	   first_segt
   second_segR;   (    (    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_socket.pyt   testSmallRead7  s    
c         C   s!   |  j  j t ƒ |  j  j ƒ  d  S(   N(   Rj  RL  R'  t   flush(   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_socket.pyt   _testSmallRead>  s    c         C   s#   |  j  j ƒ  } |  j | t ƒ d  S(   N(   Rg  R3  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_socket.pyt   testFullReadB  s    c         C   s!   |  j  j t ƒ |  j  j ƒ  d  S(   N(   Rj  RL  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_socket.pyt   _testFullReadG  s    c         C   sG   d } x* |  j  j d ƒ } | s% Pn  | | 7} q	 W|  j | t ƒ d  S(   NRv   i   (   Rg  R3  R]   R'  (   R   t   buft   char(    (    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_socket.pyt   testUnbufferedReadK  s    c         C   s!   |  j  j t ƒ |  j  j ƒ  d  S(   N(   Rj  RL  R'  Rn  (   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_socket.pyt   _testUnbufferedReadU  s    c         C   s#   |  j  j ƒ  } |  j | t ƒ d  S(   N(   Rg  t   readlineR]   R'  (   R   t   line(    (    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_socket.pyt   testReadlineY  s    c         C   s!   |  j  j t ƒ |  j  j ƒ  d  S(   N(   Rj  RL  R'  Rn  (   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_socket.pyt   _testReadline^  s    c         C   s±   |  j  j t d ƒ ƒ } |  j d | ƒ |  j  j t d ƒ ƒ } |  j d | ƒ |  j  j ƒ  } |  j d | ƒ |  j  j ƒ  } |  j d | ƒ |  j  j ƒ  } |  j t | ƒ d  S(   Ns
   A baloo iss    a bears   
s   A BALOO IS A BEAR.
(   Rg  R3  R   R]   Rv  R'  (   R   t
   a_baloo_ist   _a_bearRw  (    (    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_socket.pyt   testReadlineAfterReadb  s    c         C   sA   |  j  j d ƒ |  j  j d ƒ |  j  j t ƒ |  j  j ƒ  d  S(   Ns   A baloo is a bear
s   A BALOO IS A BEAR.
(   Rj  RL  R'  Rn  (   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_socket.pyt   _testReadlineAfterReadn  s    c         C   sK   |  j  j t d ƒ ƒ } |  j d | ƒ |  j  j ƒ  } |  j d | ƒ d  S(   Ns   End Of t   Line(   Rg  R3  R   R]   Rv  (   R   t   end_of_Rw  (    (    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_socket.pyt   testReadlineAfterReadNoNewlinet  s    c         C   s   |  j  j d ƒ d  S(   Ns   End Of Line(   Rj  RL  (   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_socket.pyt   _testReadlineAfterReadNoNewlinez  s    c         C   s   |  j  |  j j ƒ d  S(   N(   RŒ   Rg  Rh  (   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_socket.pyt   testClosedAttr}  s    c         C   s   |  j  |  j j ƒ d  S(   N(   RŒ   Rj  Rh  (   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_socket.pyt   _testClosedAttr€  s    (   R   R   Rf  R    R   R   R<   RA   Rm  Ro  Rp  Rq  Rt  Ru  Rx  Ry  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_socket.pyRc    s(   									
								t   FileObjectInterruptedTestCasec           B   sr   e  Z d  Z d e f d „  ƒ  YZ e d „  ƒ Z d d „ Z d d „ Z d „  Z	 d „  Z
 d d	 „ Z d
 „  Z RS(   s=   Test that the file object correctly handles EINTR internally.t
   MockSocketc           B   s   e  Z d d  „ Z d „  Z RS(   c         C   s   t  | ƒ |  _ d  S(   N(   t   itert
   _recv_step(   R   t
   recv_funcs(    (    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_socket.pyR    ˆ  s    c         C   s   |  j  j ƒ  ƒ  S(   N(   R‡  t   next(   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_socket.pyR&  �  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_socket.pyR…  ‡  s   c           C   s   t  j t j ƒ ‚ d  S(   N(   R   R   Rí   t   EINTR(    (    (    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_socket.pyt   _raise_eintr�  s    iÿÿÿÿc         K   sr   |  j  d d „  |  j d „  d „  g ƒ } t j | | � } |  j | j | ƒ d ƒ |  j | j | ƒ d ƒ d  S(   NRˆ  c           S   s   d S(   Ns"   This is the first line
And the sec(    (    (    (    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_socket.pyRÍ   –  Rv   c           S   s   d S(   Ns   ond line is 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_socket.pyRÍ   ˜  Rv   c           S   s   d S(   NRv   (    (    (    (    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_socket.pyRÍ   ™  Rv   s   This is the first line
s   And the second line is here
(   R…  R‹  R   t   _fileobjectR]   Rv  (   R   R§   Ro   t	   mock_sockt   fo(    (    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_socket.pyt   _test_readline”  s    	c         K   sY   |  j  d d „  |  j d „  d „  g ƒ } t j | | � } |  j | j | ƒ d ƒ d  S(   NRˆ  c           S   s   d S(   Ns"   This is the first line
And the sec(    (    (    (    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_socket.pyRÍ   ¡  Rv   c           S   s   d S(   Ns   ond line is 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_socket.pyRÍ   £  Rv   c           S   s   d S(   NRv   (    (    (    (    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_socket.pyRÍ   ¤  Rv   s3   This is the first line
And the second line is here
(   R…  R‹  R   RŒ  R]   R3  (   R   R§   Ro   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_socket.pyt
   _test_readŸ  s    	c         C   s8   |  j  ƒ  |  j  d d ƒ |  j ƒ  |  j d d ƒ d  S(   NR§   id   (   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_socket.pyt   test_defaultª  s    

c         C   sP   |  j  d d ƒ |  j  d d d d ƒ |  j d d ƒ |  j d d d d ƒ d  S(   NRf  i   R§   id   (   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_socket.pyt   test_with_1k_buffer°  s    c         C   s�   |  j  d d „  d „  d „  |  j d „  d „  g ƒ } t j | d d ƒ} |  j | j | ƒ d	 ƒ |  j | j | ƒ d
 ƒ d  S(   NRˆ  c           S   s   d S(   Nt   aa(    (    (    (    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_socket.pyRÍ   ¸  Rv   c           S   s   d S(   Ns   
(    (    (    (    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_socket.pyRÍ   ¹  Rv   c           S   s   d S(   Nt   BB(    (    (    (    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_socket.pyRÍ   º  Rv   c           S   s   d S(   Nt   bb(    (    (    (    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_socket.pyRÍ   ¼  Rv   c           S   s   d S(   NRv   (    (    (    (    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_socket.pyRÍ   ½  Rv   Rf  i    s   aa
t   BBbb(   R…  R‹  R   RŒ  R]   Rv  (   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_socket.pyt   _test_readline_no_buffer¶  s    	c         C   sD   |  j  ƒ  |  j  d d ƒ |  j d d ƒ |  j d d d d ƒ d  S(   NR§   i   Rf  i    id   (   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_socket.pyt   test_no_bufferÃ  s    
(   R   R   RF   t   objectR…  t   staticmethodR‹  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_socket.pyR„  „  s   			t!   UnbufferedFileObjectClassTestCasec           B   s&   e  Z d  Z d Z d „  Z d „  Z RS(   sƒ  Repeat the tests from FileObjectClassTestCase with bufsize==0.

    In this case (and in this case only), it should be possible to
    create a file object, read a line from it, create another file
    object, read another line from it, without loss of data in the
    first file object's buffer.  Note that httplib relies on this
    when reading multiple requests from the same socket.i    c         C   sb   |  j  j ƒ  } |  j | d t ƒ |  j j d d ƒ |  _  |  j  j ƒ  } |  j | d t ƒ d  S(   Ns   A. Rd  i    s   B. (   Rg  Rv  R]   R'  RN   Re  (   R   Rw  (    (    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_socket.pyt   testUnbufferedReadlineÖ  s
    c         C   s9   |  j  j d t ƒ |  j  j d t ƒ |  j  j ƒ  d  S(   Ns   A. s   B. (   Rj  RL  R'  Rn  (   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_socket.pyt   _testUnbufferedReadlineÞ  s    (   R   R   RF   Rf  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_socket.pyR›  Ê  s   	t#   LineBufferedFileObjectClassTestCasec           B   s?   e  Z d  Z d e f d „  ƒ  YZ d „  Z d „  Z d „  Z RS(   i   t
   SocketMemoc           B   sA   e  Z d  Z d „  Z d d „ Z d d „ Z d „  Z d „  Z RS(   sG   A wrapper to keep track of sent data, needed to examine write behaviourc         C   s   | |  _  g  |  _ d  S(   N(   Rg   t   sent(   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_socket.pyR    é  s    	i    c         C   s-   |  j  j | | ƒ } |  j j | |  ƒ | S(   N(   Rg   Ræ   R   t   append(   R   t   datat   flagst   n(    (    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_socket.pyRæ   í  s    c         C   s'   |  j  j | | ƒ |  j j | ƒ d  S(   N(   Rg   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_socket.pyR  ò  s    c         C   s   t  |  j | ƒ S(   N(   R.   Rg   (   R   t   attr(    (    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_socket.pyt   __getattr__ö  s    c         C   s5   g  |  j  D]' } t | t ƒ r+ | j ƒ  n | ^ q
 S(   N(   R   t
   isinstancet
   memoryviewt   tobytes(   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_socket.pyt   getsentù  s    (   R   R   RF   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_socket.pyRŸ  ç  s   		c         C   s,   t  j |  ƒ |  j |  j j ƒ |  j _ d  S(   N(   Rc  R   RŸ  Rg  Rg   (   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_socket.pyR   ü  s    c         C   s¹   t  j ƒ  } |  j | I|  j | IJ|  j | I|  j | I|  j | IJ|  j d IJ|  j j ƒ  d | | f } d | | | f } d } |  j |  j j j ƒ  | | | g ƒ d  S(   NRv   s   %s %s
s	   %s %s %s
s   
(   R'  t   stripRg  Rn  R]   Rg   Rª  (   R   R;   t   msg1t   msg2t   msg3(    (    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_socket.pyt   testLinebufferedWrite   s    c         C   s–   t  j ƒ  } d | | f } d | | | f } d } |  j j ƒ  } |  j | | ƒ |  j j ƒ  } |  j | | ƒ |  j j ƒ  } |  j | | ƒ d  S(   Ns   %s %s
s	   %s %s %s
s   
(   R'  R«  Rj  Rv  R]   (   R   R;   R¬  R­  R®  t   l1t   l2t   l3(    (    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_socket.pyt   _testLinebufferedWrite  s    (   R   R   Rf  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_socket.pyRž  ã  s
   		t$   SmallBufferedFileObjectClassTestCasec           B   s   e  Z d  Z RS(   i   (   R   R   Rf  (    (    (    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_socket.pyR´  "  s   t   NetworkConnectionTestc           B   s   e  Z d  Z d „  Z RS(   s   Prove network connection.c         C   s+   t  j t |  j f ƒ |  _ |  j |  _ d  S(   N(   R   t   create_connectionRR   R
   RJ   RS   (   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_socket.pyR<   )  s    (   R   R   RF   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_socket.pyRµ  '  s   t   BasicTCPTest2c           B   s   e  Z d  Z RS(   sL   Tests that NetworkConnection does not break existing TCP functionality.
    (   R   R   RF   (    (    (    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_socket.pyR·  /  s   t   NetworkConnectionNoServerc           B   sN   e  Z d  e j f d „  ƒ  YZ e j d „  ƒ Z d „  Z d „  Z d „  Z	 RS(   R…  c           B   s   e  Z d  „  Z RS(   c         G   s   t  j d ƒ ‚ d  S(   Ns	   timed out(   R   R  (   R   Rn   (    (    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_socket.pyRQ   5  s    (   R   R   RQ   (    (    (    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_socket.pyR…  4  s   c         c   s/   t  j  } |  j t  _  z	 d VWd | t  _  Xd S(   s*   Return a socket which times out on connectN(   R   R…  (   R   t
   old_socket(    (    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_socket.pyt   mocked_socket_module8  s
    		c         C   s   t  j ƒ  } t j t j t j ƒ } |  j | j ƒ |  j t j ƒ � } | j	 t
 | f ƒ Wd  QX|  j | j j t j ƒ d  S(   N(   R    Ré   R   R   R   Ry   R   Rt   R   RQ   RR   R]   R   Rí   t   ECONNREFUSED(   R   R
   RJ   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_socket.pyt   test_connectB  s    c         C   s¤   t  j ƒ  } |  j t j ƒ � } t j t | f ƒ Wd  QXt j g } t	 t d ƒ rh | j
 t j ƒ n  t	 t d ƒ rŠ | j
 t j ƒ n  |  j | j j | ƒ d  S(   Nt   ENETUNREACHt   EADDRNOTAVAIL(   R    Ré   Rt   R   R   R¶  RR   Rí   R»  Rù   R¡  R½  R¾  R}   R   (   R   R
   R�   t   expected_errnos(    (    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_socket.pyt   test_create_connectionJ  s    c         C   sC   |  j  ƒ  �1 |  j t j ƒ � t j t d f ƒ Wd  QXWd  QXd  S(   NiÒ  (   Rº  Rt   R   R  R¶  RR   (   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_socket.pyt   test_create_connection_timeouti  s    (
   R   R   R   R…  t
   contextlibt   contextmanagerRº  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_socket.pyR¸  3  s
   
		t   NetworkConnectionAttributesTestc           B   s‰   e  Z d  d „ Z d „  Z d „  Z d „  Z e Z d „  Z e Z d „  Z	 e Z
 d „  Z e Z d „  Z e Z d	 „  Z e Z d
 „  Z RS(   RH   c         C   s$   t  j |  d | ƒt j |  ƒ d  S(   NRI   (   R   R    R   (   R   RI   (    (    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_socket.pyR    t  s    c         C   s   t  j ƒ  |  _ d  S(   N(   R    Ré   t   source_port(   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_socket.pyR<   x  s    c         C   s'   |  j  j ƒ  d  |  _  t j |  ƒ d  S(   N(   RJ   R   R   R   RA   (   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_socket.pyRA   {  s    	c         C   s#   |  j  j ƒ  \ } } | j ƒ  d  S(   N(   R   RM   R   (   R   RO   RP   (    (    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_socket.pyt   _justAccept€  s    c         C   sN   t  j t |  j f d d ƒ|  _ |  j |  j j ƒ |  j |  j j d ƒ d  S(   NR  i   i   (	   R   R¶  RR   R
   RJ   Ry   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_socket.pyt   _testFamily…  s    !c         C   sg   t  j t |  j f d d d d |  j f ƒ|  _ |  j |  j j ƒ |  j |  j j	 ƒ  d |  j ƒ d  S(   NR  i   t   source_addressRv   i   (
   R   R¶  RR   R
   RÅ  RJ   Ry   R   R]   Rz   (   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_socket.pyt   _testSourceAddress‹  s    c         C   s†   |  j  t j ƒ  d  k ƒ t j d ƒ z2 t j t |  j f ƒ |  _ |  j	 |  j j
 ƒ Wd  t j d  ƒ X|  j |  j j ƒ  d ƒ d  S(   Ni*   (   RŒ   R   RÄ   R   RÆ   R¶  RR   R
   RJ   Ry   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_socket.pyt   _testTimeoutDefault”  s    c         C   sŒ   |  j  t j ƒ  d  k ƒ t j d ƒ z8 t j t |  j f d d  ƒ|  _ |  j	 |  j j
 ƒ Wd  t j d  ƒ X|  j |  j j ƒ  d  ƒ d  S(   Ni   R  (   RŒ   R   RÄ   R   RÆ   R¶  RR   R
   RJ   Ry   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_socket.pyt   _testTimeoutNone   s    !c         C   s>   t  j t |  j f d d ƒ|  _ |  j |  j j ƒ  d ƒ d  S(   NR  i   (   R   R¶  RR   R
   RJ   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_socket.pyt   _testTimeoutValueNamed¬  s    !c         C   sN   t  j t |  j f d ƒ |  _ |  j |  j j ƒ |  j |  j j ƒ  d ƒ d  S(   Ni   (	   R   R¶  RR   R
   RJ   Ry   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_socket.pyt   _testTimeoutValueNonamed±  s    (   R   R   R    R<   RA   RÆ  t
   testFamilyRÇ  t   testSourceAddressRÉ  t   testTimeoutDefaultRÊ  t   testTimeoutNoneRË  t   testTimeoutValueNamedRÌ  t   testTimeoutValueNonamedRÍ  (    (    (    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_socket.pyRÄ  q  s    								t   NetworkConnectionBehaviourTestc           B   sG   e  Z d  d „ Z d „  Z d „  Z d „  Z e Z d „  Z d „  Z RS(   RH   c         C   s$   t  j |  d | ƒt j |  ƒ d  S(   NRI   (   R   R    R   (   R   RI   (    (    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_socket.pyR    ¹  s    c         C   s   d  S(   N(    (   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_socket.pyR<   ½  s    c         C   s'   |  j  j ƒ  d  |  _  t j |  ƒ d  S(   N(   RJ   R   R   R   RA   (   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_socket.pyRA   À  s    	c         C   sC   |  j  j ƒ  \ } } |  j | j ƒ t j d ƒ | j d ƒ d  S(   Ni   s   done!(   R   RM   Ry   R   RN  RO  Ræ   (   R   RO   RP   (    (    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_socket.pyt   testInsideTimeoutÅ  s    c         C   sB   t  j t |  j f ƒ |  _ } | j d ƒ } |  j | d ƒ d  S(   Ni   s   done!(   R   R¶  RR   R
   RJ   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_socket.pyt   _testInsideTimeoutÌ  s    c            sE   t  j t |  j f d d ƒ|  _ ‰  |  j t  j ‡  f d †  ƒ d  S(   NR  i   c              s   ˆ  j  d ƒ S(   Ni   (   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_socket.pyRÍ   Ó  Rv   (   R   R¶  RR   R
   RJ   Rt   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_socket.pyt   _testOutsideTimeoutÑ  s    %(	   R   R   R    R<   RA   RÕ  t   testOutsideTimeoutRÖ  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_socket.pyRÔ  ¶  s   				t   Urllib2FileobjectTestc           B   s   e  Z d  „  Z RS(   c         C   s‚   d d d „  ƒ  Y} | ƒ  } t  j | ƒ } | j ƒ  |  j | j ƒ | ƒ  } t  j | d t ƒ} | j ƒ  |  j | j ƒ d  S(   NR…  c           B   s    e  Z e Z d  „  Z d „  Z RS(   c         S   s   d  S(   N(    (   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_socket.pyRn  Þ  Rv   c         S   s   t  |  _ d  S(   N(   R   Rh  (   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_socket.pyR   ß  Rv   (   R   R   R   Rh  Rn  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_socket.pyR…  Ü  s   	R   (    (   R   RŒ  R   RŒ   Rh  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_socket.pyRM  Û  s    	
	
(   R   R   RM  (    (    (    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_socket.pyRÙ  Ö  s   t   TCPTimeoutTestc           B   s>   e  Z d  „  Z d „  Z e j e e d ƒ d ƒ d „  ƒ Z RS(   c            s)   ‡  f d †  } ˆ  j  t j | d ƒ d  S(   Nc             s!   ˆ  j  j d ƒ ˆ  j  j ƒ  d  S(   Ng      ð?(   R   Rå   RM   (   Rn   Ro   (   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_socket.pyt   raise_timeoutñ  s    s*   Error generating a timeout exception (TCP)(   Rt   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_socket.pyt   testTCPTimeoutð  s    c         C   s“   t  } y# |  j j d ƒ |  j j ƒ  } WnM t j k
 rL |  j d ƒ n- t j k
 re t } n |  j d ƒ n X| s� |  j d ƒ n  d  S(   Ng        s%   caught timeout instead of error (TCP)s!   caught unexpected exception (TCP)s3   accept() returned success when we did not expect it(	   R   R   Rå   RM   R   R  R:   R   R   (   R   t   okRw   (    (    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_socket.pyt   testTimeoutZero÷  s    	R
  s   test needs signal.alarm()c            s2  |  j  j d ƒ d t f d „  ƒ  Y‰  ‡  f d †  } t j t j | ƒ } zÍ y¨ z“ y  t j d ƒ |  j  j ƒ  } Wn_ t j k
 r– |  j	 d ƒ nL ˆ  k
 r¦ n< |  j	 d t
 j ƒ  d  t j ƒ  f ƒ n X|  j	 d ƒ Wd  t j d	 ƒ XWn ˆ  k
 r|  j	 d
 ƒ n XWd  t j t j | ƒ Xd  S(   Ng      @t   Alarmc           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_socket.pyRß    s   c            s
   ˆ  ‚ d  S(   N(    (   R  t   frame(   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_socket.pyt   alarm_handler  s    i   s   caught timeout instead of Alarms3   caught other exception instead of Alarm: %s(%s):
%ss   nothing caughti    s   got Alarm in wrong place(   R   Rå   R?   R  R  R
  RM   R   R  R:   R™   t   exc_infot	   tracebackt
   format_exc(   R   Rá  R  Rw   (    (   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_socket.pyt   testInterruptedTimeout  s,      	#(	   R   R   RÜ  RÞ  RU   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_socket.pyRÚ  î  s   		t   UDPTimeoutTestc           B   s   e  Z d  „  Z d „  Z RS(   c            s)   ‡  f d †  } ˆ  j  t j | d ƒ d  S(   Nc             s$   ˆ  j  j d ƒ ˆ  j  j d ƒ d  S(   Ng      ð?i   (   R   Rå   R&  (   Rn   Ro   (   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_socket.pyRÛ  *  s    s*   Error generating a timeout exception (UDP)(   Rt   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_socket.pyt   testUDPTimeout)  s    c         C   s–   t  } y& |  j j d ƒ |  j j d ƒ } WnM t j k
 rO |  j d ƒ n- t j k
 rh t } n |  j d ƒ n X| s’ |  j d ƒ n  d  S(   Ng        i   s%   caught timeout instead of error (UDP)s!   caught unexpected exception (UDP)s1   recv() returned success when we did not expect it(	   R   R   Rå   R&  R   R  R:   R   R   (   R   RÝ  Rw   (    (    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_socket.pyRÞ  0  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_socket.pyRæ  '  s   	t   TestExceptionsc           B   s   e  Z d  „  Z RS(   c         C   sq   |  j  t t j t ƒ ƒ |  j  t t j t j ƒ ƒ |  j  t t j t j ƒ ƒ |  j  t t j t j ƒ ƒ d  S(   N(   RŒ   t
   issubclassR   R   R?   Rq   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_socket.pyt   testExceptionTree@  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_socket.pyRè  >  s   R¯   s   Linux specific testt   TestLinuxAbstractNamespacec           B   s)   e  Z d  Z d „  Z d „  Z d „  Z RS(   il   c         C   s�   d } t  j  t  j t  j ƒ } | j | ƒ | j d ƒ t  j  t  j t  j ƒ } | j | j ƒ  ƒ | j ƒ  |  j | j ƒ  | ƒ |  j | j	 ƒ  | ƒ d  S(   Ns    python-test-hello ÿi   (
   R   t   AF_UNIXR   R   R   RQ   Rz   RM   R]   t   getpeername(   R   t   addresst   s1t   s2(    (    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_socket.pyt   testLinuxAbstractNamespaceK  s    
c         C   sT   d d |  j  d } t j t j t j ƒ } | j | ƒ |  j | j ƒ  | ƒ d  S(   Ns    t   hi   (   t   UNIX_PATH_MAXR   Rì  R   R   R]   Rz   (   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_socket.pyt   testMaxNameV  s    c         C   sF   d d |  j  } t j t j t j ƒ } |  j t j | j | ƒ d  S(   Ns    Rò  (   Ró  R   Rì  R   Rt   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_socket.pyt   testNameOverflow\  s    (   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_socket.pyRë  F  s   		t   BufferIOTestc           B   s›   e  Z d  Z d d „ Z d „  Z d „  Z d „  Z e Z d „  Z e Z	 d „  Z
 d „  Z d	 „  Z e Z d
 „  Z e Z d „  Z d „  Z d „  Z e Z RS(   sF   
    Test the buffer versions of socket.recv() and socket.send().
    RH   c         C   s   t  j |  d | ƒd  S(   NRI   (   RL   R    (   R   RI   (    (    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_socket.pyR    g  s    c         C   sh   t  j  d d d ƒ } |  j j | ƒ } |  j | t t ƒ ƒ | j ƒ  t t ƒ  } |  j | t ƒ d  S(   NR  t    i   (   t   arrayRN   t	   recv_intoR]   R   R'  t   tostring(   R   Rr  t   nbytesR;   (    (    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_socket.pyt   testRecvIntoArrayj  s
    c         C   s3   t  j ƒ  � t t ƒ } Wd  QX|  j j | ƒ d  S(   N(   R    t   check_py3k_warningst   bufferR'  RS   Ræ   (   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_socket.pyt   _testRecvIntoArrayq  s    c         C   sX   t  d ƒ } |  j j | ƒ } |  j | t t ƒ ƒ | t t ƒ  } |  j | t ƒ d  S(   Ni   (   t	   bytearrayRN   Rù  R]   R   R'  (   R   Rr  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_socket.pyt   testRecvIntoBytearrayv  s
    c         C   s^   t  d ƒ } |  j j t | ƒ ƒ } |  j | t t ƒ ƒ | t t ƒ  } |  j | t ƒ d  S(   Ni   (   R   RN   Rù  R¨  R]   R   R'  (   R   Rr  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_socket.pyt   testRecvIntoMemoryview  s
    c         C   sn   t  j  d d d ƒ } |  j j | ƒ \ } } |  j | t t ƒ ƒ | j ƒ  t t ƒ  } |  j | t ƒ d  S(   NR  R÷  i   (   Rø  RN   t   recvfrom_intoR]   R   R'  Rú  (   R   Rr  Rû  RP   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_socket.pyt   testRecvFromIntoArrayˆ  s
    c         C   s3   t  j ƒ  � t t ƒ } Wd  QX|  j j | ƒ d  S(   N(   R    Rý  Rþ  R'  RS   Ræ   (   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_socket.pyt   _testRecvFromIntoArray�  s    c         C   s^   t  d ƒ } |  j j | ƒ \ } } |  j | t t ƒ ƒ | t t ƒ  } |  j | t ƒ d  S(   Ni   (   R   RN   R  R]   R   R'  (   R   Rr  Rû  RP   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_socket.pyt   testRecvFromIntoBytearray”  s
    c         C   sd   t  d ƒ } |  j j t | ƒ ƒ \ } } |  j | t t ƒ ƒ | t t ƒ  } |  j | t ƒ d  S(   Ni   (   R   RN   R  R¨  R]   R   R'  (   R   Rr  Rû  RP   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_socket.pyt   testRecvFromIntoMemoryview�  s
    c         C   s,   t  d ƒ } |  j t |  j j | d ƒ d  S(   Ni   i   (   R   Rt   RÇ   RN   R  (   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_socket.pyt   testRecvFromIntoSmallBuffer¦  s    c         C   s3   t  j ƒ  � t t ƒ } Wd  QX|  j j | ƒ d  S(   N(   R    Rý  Rþ  R'  RS   Ræ   (   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_socket.pyt   _testRecvFromIntoSmallBuffer«  s    c         C   s0   t  ƒ  } |  j j | ƒ |  j j | d ƒ d  S(   Ni    (   R   RN   R  (   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_socket.pyt   testRecvFromIntoEmptyBuffer°  s    	(   R   R   RF   R    Rü  Rÿ  R  t   _testRecvIntoBytearrayR  t   _testRecvIntoMemoryviewR  R  R  t   _testRecvFromIntoBytearrayR  t   _testRecvFromIntoMemoryviewR  R	  R
  t   _testRecvFromIntoEmptyBuffer(    (    (    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_socket.pyRö  b  s$   											iÐ  iÈ   iÒ   c          C   s–   t  t d ƒ s t Sy t d ƒ }  Wn; t k
 r` } | j t j t j t j f k rZ t S‚  n X|  �) x! |  D] } | j	 d ƒ ro t
 Sqo WWd QXt S(   sˆ   Check if the TIPC module is loaded

    The TIPC module is not loaded automatically on Ubuntu and probably
    other Linux distros.
    t   AF_TIPCs   /proc/moduless   tipc N(   Rù   R   R   t   opent   IOErrorRí   t   ENOENTt   EISDIRt   EACCESRº   R   (   RÎ   Rñ   Rw  (    (    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_socket.pyt   isTipcAvailable¼  s    !s6   TIPC module is not loaded, please 'sudo modprobe tipc't   TIPCTestc           B   s   e  Z d  „  Z RS(   c         C   sÛ   t  j  t  j t  j ƒ } t  j  t  j t  j ƒ } | j t  j t  j d ƒ t  j t t t	 f } | j
 | ƒ t  j t t t	 t d d f } | j t | ƒ | j d ƒ \ } } |  j | j ƒ  | ƒ |  j | t ƒ d  S(   Ni   i   i    i   (   R   R  R„   Rã   R†   R‡   t   TIPC_ADDR_NAMESEQt
   TIPC_STYPEt
   TIPC_LOWERt
   TIPC_UPPERR   t   TIPC_ADDR_NAMER|   R'  R.  R]   Rz   (   R   R  RJ   t   srvaddrt   sendaddrR;   t   recvaddr(    (    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_socket.pyt   testRDM×  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_socket.pyR  Ô  s   t   TIPCThreadableTestc           B   s8   e  Z d  d „ Z d „  Z d „  Z d „  Z d „  Z RS(   RH   c         C   s'   t  j j |  d | ƒt j |  ƒ d  S(   NRI   (   RU   RV   R    R   (   R   RI   (    (    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_socket.pyR    í  s    c         C   s•   t  j  t  j t  j ƒ |  _ |  j j t  j t  j d ƒ t  j t t	 t
 f } |  j j | ƒ |  j j d ƒ |  j ƒ  |  j j ƒ  \ |  _ |  _ d  S(   Ni   i   (   R   R  R   R  Rã   R†   R‡   R  R  R  R  R   R   R#   RM   RO   t   connaddr(   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_socket.pyR   ñ  s    	
c         C   so   t  j d ƒ t j t j t j ƒ |  _ t j t t t	 t d d f } |  j j
 | ƒ |  j j ƒ  |  _ d  S(   Ngš™™™™™¹?i   i    (   RN  RO  R   R  R   RJ   R  R  R  R  RQ   Rz   t   cliaddr(   R   RP   (    (    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_socket.pyR<   û  s    	c         C   s<   |  j  j d ƒ } |  j | t ƒ |  j |  j |  j ƒ d  S(   Ni   (   RO   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_socket.pyt
   testStream  s    c         C   s!   |  j  j t ƒ |  j  j ƒ  d  S(   N(   RJ   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_socket.pyt   _testStream  s    (   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_socket.pyR!  ê  s
   	
		c          C   s£   t  t t t t t t t t g	 }  |  j	 t
 t t t t t t t t t g
 ƒ |  j t ƒ |  j t ƒ |  j	 t t g ƒ t j ƒ  } t j |  Œ  t j | Œ  d  S(   N(   RX   R%  RI  RÚ  Rè  Rö  R·  RD  Ræ  t   extendRT  Rc  R„  R›  Rž  R´  RÙ  R¸  RÄ  RÔ  R¡  RQ  Rë  R  R!  R    t   threading_setupt   run_unittestt   threading_cleanup(   t   testst   thread_info(    (    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_socket.pyt	   test_main  s(    	
t   __main__(G   RU   t   testR    Rí   Rê   R   RJ  RN  Rã  R*   R™   R#  Rø  RÂ  R  R  Rb   RY   RÓ   R   R]  R   R   RR   R'  t   IPV6_ENABLEDR  R/   R&   RV   R   R   R   RG   RK   RL   RT   RX   R"  R%  RD  RI  Rù   RQ  RT  Rc  R„  R›  Rž  R´  R™  Rµ  R·  R¸  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_socket.pyt   <module>   s°   
		
	
bÿ ÿ hehF?>D9U			$	