#NEWLINE# def test_reuseport_unsupported( self ) : #NEWLINE# #INDENT# config = { #NEWLINE# #INDENT# 'name' : '' , #NEWLINE# 'host' : 'localhost' , #NEWLINE# 'port' : 0 , #NEWLINE# 'so_reuseport' : True , #NEWLINE# #UNINDENT# } #NEWLINE# saved = None #NEWLINE# try : #NEWLINE# #INDENT# if hasattr ( socket , 'SO_REUSEPORT' ) : #NEWLINE# #INDENT# saved = socket . SO_REUSEPORT #NEWLINE# del socket . SO_REUSEPORT #NEWLINE# #UNINDENT# sock = CircusSocket . load_from_config ( config ) #NEWLINE# self . assertEqual ( sock . so_reuseport , False ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# if ( saved is not None ) : #NEWLINE# #INDENT# socket . SO_REUSEPORT = saved #NEWLINE# #UNINDENT# sock . close ( )