ó
‹wÛjc           @   sÇ  d  Z  d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l m	 Z	 m
 Z
 d d l m Z d d l m Z e j d ƒ Z d Z d Z d	 e j f d
 „  ƒ  YZ d e j e j f d „  ƒ  YZ d e	 f d „  ƒ  YZ e Z e e d ƒ rcd d l Z e Z e j j e j j  e! ƒ pAe j" d ƒ Z# d e f d „  ƒ  YZ$ n  e
 e d ƒ Z% e% d e f d „  ƒ  Yƒ Z& d e	 f d „  ƒ  YZ' d „  Z( e) d k rÃe( ƒ  n  d S(   s   Test script for poplib module.iÿÿÿÿN(   t   TestCaset
   skipUnless(   t   test_support(   t   HOSTt	   threadings   1 1
2 2
3 3
4 4
5 5
.
st   From: postmaster@python.org
Content-Type: text/plain
MIME-Version: 1.0
Subject: Dummy

line1
line2
line3
.
t   DummyPOP3Handlerc           B   s’   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z e Z d
 „  Z e Z d „  Z d „  Z d „  Z RS(   c         C   s:   t  j j |  | ƒ |  j d ƒ g  |  _ |  j d ƒ d  S(   Ns   
s   +OK dummy pop3 server ready.(   t   asynchatt
   async_chatt   __init__t   set_terminatort	   in_buffert   push(   t   selft   conn(    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_poplib.pyR   #   s    	c         C   s   |  j  j | ƒ d  S(   N(   R
   t   append(   R   t   data(    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_poplib.pyt   collect_incoming_data)   s    c         C   s®   d j  |  j ƒ } g  |  _ | j d ƒ d j ƒ  } | j d ƒ } | d k r` | | d } n d } t |  d | ƒ r™ t |  d | ƒ } | | ƒ n |  j d | ƒ d  S(   Nt    t    i    iÿÿÿÿi   t   cmd_s$   -ERR unrecognized POP3 command "%s".(   t   joinR
   t   splitt   lowert   findt   hasattrt   getattrR   (   R   t   linet   cmdt   spacet   argt   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_poplib.pyt   found_terminator,   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_poplib.pyt   handle_error;   s    c         C   s   t  j j |  | d ƒ d  S(   Ns   
(   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_poplib.pyR   >   s    c         C   s   |  j  | ƒ 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_poplib.pyt   cmd_echoA   s    c         C   s-   | d k r |  j  d ƒ n  |  j  d ƒ d  S(   Nt   guidos   -ERR no such users   +OK password required(   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_poplib.pyt   cmd_userE   s    c         C   s-   | d k r |  j  d ƒ n  |  j  d ƒ d  S(   Nt   pythons   -ERR wrong passwords   +OK 10 messages(   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_poplib.pyt   cmd_passJ   s    c         C   s   |  j  d ƒ d  S(   Ns
   +OK 10 100(   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_poplib.pyt   cmd_statO   s    c         C   sD   | r  |  j  d | | f ƒ n  |  j  d ƒ t j j  |  t ƒ d  S(   Ns	   +OK %s %ss   +OK(   R   R   R   t	   LIST_RESP(   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_poplib.pyt   cmd_listR   s    c         C   s.   |  j  d t t ƒ ƒ t j j  |  t ƒ d  S(   Ns   +OK %s bytes(   R   t   lent	   RETR_RESPR   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_poplib.pyt   cmd_retr[   s    c         C   s   |  j  d ƒ d  S(   Ns    +OK message marked for deletion.(   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_poplib.pyt   cmd_delea   s    c         C   s   |  j  d ƒ d  S(   Ns   +OK done nothing.(   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_poplib.pyt   cmd_noopd   s    c         C   s   |  j  d ƒ d  S(   Ns   +OK done nothing.(   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_poplib.pyt   cmd_rpopg   s    (   t   __name__t
   __module__R   R   R   R    R   R!   R#   R%   R&   R(   t   cmd_uidlR+   t   cmd_topR,   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_poplib.pyR   !   s    													t   DummyPOP3Serverc           B   sb   e  Z e Z e j d  „ Z d „  Z d „  Z d „  Z	 d „  Z
 d „  Z e Z d „  Z d „  Z RS(   c         C   sˆ   t  j j |  ƒ t j j |  ƒ |  j | t j ƒ |  j | ƒ |  j	 d ƒ t
 |  _ t  j ƒ  |  _ |  j j ƒ  d  \ |  _ |  _ d  S(   Ni   i   (   R   t   ThreadR   t   asyncoret
   dispatchert   create_sockett   sockett   SOCK_STREAMt   bindt   listent   Falset   activet   Lockt   active_lockt   getsocknamet   hostt   port(   R   t   addresst   af(    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_poplib.pyR   o   s    	c         C   s@   |  j  s t ‚ t j ƒ  |  _ t j j |  ƒ |  j j ƒ  d  S(   N(   R=   t   AssertionErrorR   t   Eventt   _DummyPOP3Server__flagR4   t   startt   wait(   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_poplib.pyRH   y   s    c         C   ss   t  |  _ |  j j ƒ  xF |  j r^ t j r^ |  j j ƒ  t j d d d d ƒ |  j j	 ƒ  q Wt j
 d t  ƒ d  S(   Nt   timeoutgš™™™™™¹?t   counti   t
   ignore_all(   t   TrueR=   RG   t   setR5   t
   socket_mapR?   t   acquiret   loopt   releaset	   close_all(   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_poplib.pyt   run   s    	c         C   s&   |  j  s t ‚ t |  _  |  j ƒ  d  S(   N(   R=   RE   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_poplib.pyt   stopˆ   s    	c         C   s2   |  j  ƒ  \ } } |  j | ƒ |  _ |  j ƒ  d  S(   N(   t   acceptt   handlert   close(   R   R   t   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_poplib.pyt   handle_accept�   s    c         C   s   |  j  ƒ  d  S(   N(   RX   (   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_poplib.pyt   handle_connect’   s    c         C   s   d S(   Ni    (    (   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_poplib.pyt   writable–   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_poplib.pyR    ™   s    (   R/   R0   R   RW   R8   t   AF_INETR   RH   RT   RU   RZ   R[   t   handle_readR\   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_poplib.pyR3   k   s   
							t   TestPOP3Classc           B   s¡   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   s   |  j  | j d ƒ ƒ d  S(   Ns   +OK(   t
   assertTruet
   startswith(   R   t   resp(    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_poplib.pyt   assertOKŸ   s    c         C   sG   t  t d f ƒ |  _ |  j j ƒ  t j |  j j |  j j ƒ |  _ d  S(   Ni    (	   R3   R   t   serverRH   t   poplibt   POP3RA   RB   t   client(   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_poplib.pyt   setUp¢   s    c         C   s   |  j  j ƒ  |  j j ƒ  d  S(   N(   Rg   t   quitRd   RU   (   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_poplib.pyt   tearDown§   s    c         C   s   |  j  |  j j ƒ  d ƒ d  S(   Ns   +OK dummy pop3 server ready.(   t   assertEqualRg   t
   getwelcome(   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_poplib.pyt   test_getwelcome«   s    c         C   s    |  j  t j |  j j d ƒ d  S(   Ns	   echo -err(   t   assertRaisesRe   t   error_protoRg   t	   _shortcmd(   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_poplib.pyt   test_exceptions®   s    c         C   s9   |  j  |  j j d ƒ ƒ |  j t j |  j j d ƒ d  S(   NR"   t   invalid(   Rc   Rg   t   userRn   Re   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_poplib.pyt	   test_user±   s    c         C   s9   |  j  |  j j d ƒ ƒ |  j t j |  j j d ƒ d  S(   NR$   Rr   (   Rc   Rg   t   pass_Rn   Re   Ro   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_poplib.pyt
   test_pass_µ   s    c         C   s   |  j  |  j j ƒ  d ƒ d  S(   Ni
   id   (   i
   id   (   Rk   Rg   t   stat(   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_poplib.pyt	   test_stat¹   s    c         C   sX   |  j  |  j j ƒ  d d d d d d g d f ƒ |  j |  j j d ƒ j d	 ƒ ƒ d  S(
   Ni   s   1 1s   2 2s   3 3s   4 4s   5 5i   t   1s   OK 1 1(   Rk   Rg   t   listR`   t   endswith(   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_poplib.pyt	   test_list¼   s    c      	   C   sG   d d d d d d d d d	 g d
 f } |  j  |  j j d ƒ | ƒ d  S(   Ns   +OK 116 bytess   From: postmaster@python.orgs   Content-Type: text/plains   MIME-Version: 1.0s   Subject: DummyR   t   line1t   line2t   line3iq   t   foo(   Rk   Rg   t   retr(   R   t   expected(    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_poplib.pyt	   test_retrÁ   s    	c         C   s/   |  j  t j |  j j d t j d d ƒ d  S(   Ns   echo +%si
   t   a(   Rn   Re   Ro   Rg   Rp   t   _MAXLINE(   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_poplib.pyt   test_too_long_linesÉ   s    c         C   s   |  j  |  j j d ƒ ƒ d  S(   NR€   (   Rc   Rg   t   dele(   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_poplib.pyt	   test_deleÍ   s    c         C   s   |  j  |  j j ƒ  ƒ d  S(   N(   Rc   Rg   t   noop(   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_poplib.pyt	   test_noopÐ   s    c         C   s   |  j  |  j j d ƒ ƒ d  S(   NR€   (   Rc   Rg   t   rpop(   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_poplib.pyt	   test_rpopÓ   s    c      	   C   sP   d d d } t  j |  j d | ƒ �$ |  j t j |  j j d d ƒ Wd  QXd  S(   Ns   +OKt   <i@B t   welcomeR„   t   kb(   R   t	   swap_attrRg   Rn   Re   Ro   t   apop(   R   t   evil_welcome(    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_poplib.pyt   test_apop_REDOSÖ   s    c      	   C   sJ   d d d d d d d d d	 g d
 f } |  j  |  j j d d ƒ | ƒ d  S(   Ns   +OK 116 bytess   From: postmaster@python.orgs   Content-Type: text/plains   MIME-Version: 1.0s   Subject: DummyR   R}   R~   R   iq   i   (   Rk   Rg   t   top(   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_poplib.pyt   test_topà   s    		c         C   s!   |  j  j ƒ  |  j  j d ƒ d  S(   NR€   (   Rg   t   uidl(   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_poplib.pyt	   test_uidlè   s    (   R/   R0   Rc   Rh   Rj   Rm   Rq   Rt   Rv   Rx   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_poplib.pyR_   �   s"   															
	t   POP3_SSLs   keycert.pemt   DummyPOP3_SSLHandlerc           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         C   st   t  j j |  | ƒ t j |  j d t d t d t ƒ|  _ t |  _	 |  j
 ƒ  |  j d ƒ g  |  _ |  j d ƒ d  S(   Nt   certfilet   server_sidet   do_handshake_on_connects   
s   +OK dummy pop3 server ready.(   R   R   R   t   sslt   wrap_socketR8   t   CERTFILERM   R<   t   _ssl_acceptingt   _do_ssl_handshakeR	   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_poplib.pyR   ö   s    	
	c         C   s²   y |  j  j ƒ  Wn‘ t j k
 ro } | j d t j t j f k rI d  S| j d t j k ri |  j ƒ  S‚  n? t  j	 k
 r¤ } | j d t
 j k r® |  j ƒ  Sn
 Xt |  _ d  S(   Ni    (   R8   t   do_handshakeR�   t   SSLErrort   argst   SSL_ERROR_WANT_READt   SSL_ERROR_WANT_WRITEt   SSL_ERROR_EOFt   handle_closet   errort   errnot   ECONNABORTEDR<   R    (   R   t   err(    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_poplib.pyR¡     s    
c         C   s'   |  j  r |  j ƒ  n t j |  ƒ d  S(   N(   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_poplib.pyR^     s    	(   R/   R0   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_poplib.pyR™   ô   s   		s   SSL not supportedt   TestPOP3_SSLClassc           B   s   e  Z d  „  Z d „  Z RS(   c         C   sS   t  t d f ƒ |  _ t |  j _ |  j j ƒ  t j |  j j |  j j	 ƒ |  _
 d  S(   Ni    (   R3   R   Rd   R™   RW   RH   Re   R˜   RA   RB   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_poplib.pyRh     s    c         C   s   |  j  d t j ƒ d  S(   NR˜   (   t   assertInRe   t   __all__(   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_poplib.pyt   test__all__$  s    (   R/   R0   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_poplib.pyR­     s   	t   TestTimeoutsc           B   s>   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   s§   t  j ƒ  |  _ t j t j t j ƒ |  _ |  j j d ƒ t j	 |  j ƒ |  _
 t  j d |  j d |  j |  j f ƒ |  _ |  j j t ƒ |  j j ƒ  |  j j ƒ  d  S(   Ni<   t   targetR¤   (   R   RF   t   evtR8   R]   R9   t   sockt
   settimeoutR   t	   bind_portRB   R4   Rd   t   threadt	   setDaemonRM   RH   RI   (   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_poplib.pyRh   *  s    *c         C   s   |  j  j ƒ  |  `  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_poplib.pyRj   4  s    c         C   sq   | j  d ƒ | j ƒ  zH y- | j ƒ  \ } } | j d ƒ | j ƒ  Wn t j k
 r] n XWd  | j ƒ  Xd  S(   Ni   s   + Hola mundo
(   R;   RN   RV   t   sendRX   R8   RJ   (   R   R³   t   servR   RY   (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_poplib.pyRd   8  s    
 c         C   st   |  j  t j ƒ  ƒ t j d ƒ z t j t |  j ƒ } Wd  t j d  ƒ X|  j	 | j
 j ƒ  d ƒ | j
 j ƒ  d  S(   Ni   (   t   assertIsNoneR8   t   getdefaulttimeoutt   setdefaulttimeoutRe   Rf   R   RB   t   NoneRk   R´   t
   gettimeoutRX   (   R   t   pop(    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_poplib.pyt   testTimeoutDefaultD  s    c         C   sw   |  j  t j ƒ  ƒ t j d ƒ z t j t |  j d d  ƒ} Wd  t j d  ƒ X|  j  | j	 j
 ƒ  ƒ | j	 j ƒ  d  S(   Ni   RJ   (   R»   R8   R¼   R½   Re   Rf   R   RB   R¾   R´   R¿   RX   (   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_poplib.pyt   testTimeoutNoneN  s    c         C   sE   t  j t |  j d d ƒ} |  j | j j ƒ  d ƒ | j j ƒ  d  S(   NRJ   i   (   Re   Rf   R   RB   Rk   R´   R¿   RX   (   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_poplib.pyt   testTimeoutValueX  s    (   R/   R0   Rh   Rj   Rd   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_poplib.pyR±   (  s   	
			
	
c          C   sA   t  t t g }  t j ƒ  } z t j |  Œ  Wd  t j | Œ  Xd  S(   N(   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_poplib.pyt	   test_main^  s    	t   __main__(*   t   __doc__Re   R5   R   R8   t   ost   timeRª   t   unittestR    R   t   testR   t   test.test_supportR   t   import_moduleR   R'   R*   R   R   R6   R4   R3   R_   R<   t   SUPPORTS_SSLR   R�   RM   t   pathR   t   dirnamet   __file__t   curdirRŸ   R™   t   requires_sslR­   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_poplib.pyt   <module>   s:   	J2P*$6	
