def test_qtable_read_for_ipac_table_with_char_columns():
 t1 = table.QTable([['A']], names='B')
 out = StringIO()
 t1.write(out, format='ascii.ipac')
 t2 = table.QTable.read(out.getvalue(), format='ascii.ipac', guess=False)
 assert (t2['B'].unit is None)

def test_qtable_read_for_ipac_table_with_char_columns ( ) : t1 = table . QTable ( [ [ 'A' ] ] , names = 'B' ) out = StringIO ( ) t1 . write ( out , format = 'ascii.ipac' ) t2 = table . QTable . read ( out . getvalue ( ) , format = 'ascii.ipac' , guess = False ) assert ( t2 [ 'B' ] . unit is None )
test that a char column of a qtable is assigned no unit and not a dimensionless unit .