<s> import httplib <EOL> import socket <EOL> import sys <EOL> from test import test_support <EOL> import unittest <EOL> class SocketIPv6Test ( unittest . TestCase ) : <EOL> def test_connect_localhost ( self ) : <EOL> '''<STR_LIT>''' <EOL> conn = httplib . HTTPConnection ( '<STR_LIT:localhost>' , <NUM_LIT> ) <EOL> body = "<STR_LIT>" <EOL> headers = { } <EOL> try : <EOL> conn . request ( "<STR_LIT:GET>" , "<STR_LIT>" , body , headers ) <EOL> except socket . error : <EOL> pass <EOL> def test_main ( ) : <EOL> test_support . run_unittest ( SocketIPv6Test ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> test_main ( ) </s>
