#NEWLINE# @ timed ( 0.5 ) #NEWLINE# def test_https_proxy_timeout( self ) : #NEWLINE# #INDENT# https = proxy_from_url ( 'https://{host}' . format ( host = TARPIT_HOST ) ) #NEWLINE# try : #NEWLINE# #INDENT# https . request ( 'GET' , self . http_url , timeout = 0.001 ) #NEWLINE# self . fail ( 'Failed to raise retry error.' ) #NEWLINE# #UNINDENT# except MaxRetryError as e : #NEWLINE# #INDENT# self . assertEqual ( type ( e . reason ) , ConnectTimeoutError )