#NEWLINE# def test_write_nan_and_inf( self ) : #NEWLINE# #INDENT# 'Test writing special numbers.' #NEWLINE# workbook = Workbook ( worksheet . got_filename , { #NEWLINE# #INDENT# 'nan_inf_to_errors' : True , #NEWLINE# #UNINDENT# } ) #NEWLINE# worksheet = workbook . add_worksheet ( ) #NEWLINE# worksheet . write ( 0 , 0 , float ( 'nan' ) ) #NEWLINE# worksheet . write ( 1 , 0 , float ( 'inf' ) ) #NEWLINE# worksheet . write ( 2 , 0 , float ( '-inf' ) ) #NEWLINE# workbook . close ( ) #NEWLINE# self . assertExcelEqual ( )