def compare_rec_with_var_subrows(self, rec1, rec2, name, rows):
for f in rec1.dtype.names:<EOL><INDENT>if fitsio.util.is_object(rec2[f]):<EOL><INDENT>for i in xrange(rec2.size):<EOL><INDENT>if isinstance(rec2[f][i],str):<EOL><INDENT>self.assertEqual(rec1[f][i],rec2[f][i],<EOL>"<STR_LIT>" % (name,f,i))<EOL><DEDENT>else:<EOL><INDENT>delement = rec1[f][i]<EOL>orig = rec2[f][i]<EOL>s=orig.size<EOL>self.compare_array(orig, delement[<NUM_LIT:0>:s],<EOL>"<STR_LIT>" % (name,f,i))<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>self.compare_array(rec1[f], rec2[f],<EOL>"<STR_LIT>" % (name,f))<EOL><DEDENT><DEDENT>
Second one must be the one with object arrays