
    ia                     4   d dl mZ  ej                     	 d dlZn# e$ r	 d dlmZ Y nw xY wd dlZd dlm	Z
  e
j         eed          d           e
j        d           G d de
j                                          Zed	k    r e
j                     dS dS )
    )monkeyN)clientsslzNeeds socket.ssl (Python 2)zTries to access amazon.comc                       e Zd ZdZd Zd ZdS )AmazonHTTPSTests   c                     t          j        d          }|                    dd           |                                 d S )Nsdb.amazonaws.comGET/)httplibHTTPSConnectionrequestgetresponse)selfconns     H/usr/local/lib/python3.11/dist-packages/gevent/tests/test__socket_ssl.pytest_amazon_responsez%AmazonHTTPSTests.test_amazon_response   s?    &':;;UC       c                     t          j                     }|                    d           t          j        |          }t          |          sJ t	          |          sJ d S )N)r
   i  )socketconnectr   strrepr)r   r   ssl_conns      r   test_str_and_reprz"AmazonHTTPSTests.test_str_and_repr   sY    }/000:d##8}}H~~r   N)__name__
__module____qualname____timeout__r   r    r   r   r   r      s9         K  
    r   r   __main__)geventr   	patch_allr   ImportErrorhttpr   r   gevent.testingtesting	greentest
skipUnlesshasattrskipWithoutExternalNetworkTestCaser   r   mainr!   r   r   <module>r/      s,             'NNNN ' ' '&&&&&&&&'  # " " " " " GFE!  &%&BCC    y)   DC	 
" zIN s    **