def test_read_twoline_wrong_marker():
 table = '\n| Col1 |   Col2   |\n|aaaaaa|aaaaaaaaaa|\n|  1.2 | "hello"  |\n|  2.4 | \'s worlds|\n'
 with pytest.raises(InconsistentTableError) as excinfo:
  dat = ascii.read(table, Reader=ascii.FixedWidthTwoLine, delimiter='|', guess=False)
 assert ('Characters in position line must be part' in str(excinfo.value))

def test_read_twoline_wrong_marker ( ) : table = '\n| Col1 |   Col2   |\n|aaaaaa|aaaaaaaaaa|\n|  1.2 | "hello"  |\n|  2.4 | \'s worlds|\n' with pytest . raises ( InconsistentTableError ) as excinfo : dat = ascii . read ( table , Reader = ascii . FixedWidthTwoLine , delimiter = '|' , guess = False ) assert ( 'Characters in position line must be part' in str ( excinfo . value ) )
test failure when position line uses characters prone to ambiguity characters in position line must be part an allowed set because normal letters or numbers will lead to ambiguous tables .