@pytest.mark.skipif('not HAS_YAML')
def test_bad_delimiter_input():
 lines = copy.copy(SIMPLE_LINES)
 lines.insert(2, '# delimiter: |')
 with pytest.raises(ValueError) as err:
  Table.read('\n'.join(lines), format='ascii.ecsv', guess=False)
 assert ('only space and comma are allowed' in str(err.value))

@ pytest . mark . skipif ( 'not HAS_YAML' ) def test_bad_delimiter_input ( ) : lines = copy . copy ( SIMPLE_LINES ) lines . insert ( 2 , '# delimiter: |' ) with pytest . raises ( ValueError ) as err : Table . read ( '\n' . join ( lines ) , format = 'ascii.ecsv' , guess = False ) assert ( 'only space and comma are allowed' in str ( err . value ) )
illegal delimiter in input .