#NEWLINE# def test( self ) : #NEWLINE# #INDENT# self . assertTrue ( ( '/test_var/structure variable' in tbl . h5file ) ) #NEWLINE# self . h5file . close ( ) #NEWLINE# h5fname_copy = tempfile . mktemp ( '.h5' ) #NEWLINE# shutil . copy ( self . h5fname , h5fname_copy ) #NEWLINE# try : #NEWLINE# #INDENT# self . h5file = tables . open_file ( h5fname_copy , 'a' ) #NEWLINE# #UNINDENT# except IOError : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# tbl = self . h5file . get_node ( '/test_var/structure variable' ) #NEWLINE# self . assertRaises ( tables . HDF5ExtError , tbl . append , [ ( 4.0 , 5.0 , [ 2.0 , 3.0 ] , 'd' ) ] ) #NEWLINE# self . assertRaises ( tables . HDF5ExtError , tbl . row . append ) #NEWLINE# self . h5file . close ( ) #NEWLINE# os . remove ( h5fname_copy )