@pytest.mark.skipif('not HAS_YAML')
def test_bad_header_start():
 lines = copy.copy(SIMPLE_LINES)
 lines[0] = '# %ECV 0.9'
 with pytest.raises(ascii.InconsistentTableError):
  Table.read('\n'.join(lines), format='ascii.ecsv', guess=False)

@ pytest . mark . skipif ( 'not HAS_YAML' ) def test_bad_header_start ( ) : lines = copy . copy ( SIMPLE_LINES ) lines [ 0 ] = '# %ECV 0.9' with pytest . raises ( ascii . InconsistentTableError ) : Table . read ( '\n' . join ( lines ) , format = 'ascii.ecsv' , guess = False )
bad header without initial # %ecsv x .