@pytest.mark.parametrize('parallel', [True, False])
def test_no_header(parallel, read_basic, read_no_header):
 with pytest.raises(ValueError):
  read_basic('A B C\n1 2 3\n4 5 6', header_start=None, data_start=0, parallel=parallel)
 t2 = read_no_header('A B C\n1 2 3\n4 5 6', parallel=parallel)
 expected = Table([['A', '1', '4'], ['B', '2', '5'], ['C', '3', '6']], names=('col1', 'col2', 'col3'))
 assert_table_equal(t2, expected)

@ pytest . mark . parametrize ( 'parallel' , [ True , False ] ) def test_no_header ( parallel , read_basic , read_no_header ) : with pytest . raises ( ValueError ) : read_basic ( 'A B C\n1 2 3\n4 5 6' , header_start = None , data_start = 0 , parallel = parallel ) t2 = read_no_header ( 'A B C\n1 2 3\n4 5 6' , parallel = parallel ) expected = Table ( [ [ 'A' , '1' , '4' ] , [ 'B' , '2' , '5' ] , [ 'C' , '3' , '6' ] ] , names = ( 'col1' , 'col2' , 'col3' ) ) assert_table_equal ( t2 , expected )
the header should not be read when header_start=none .