@pytest.mark.parametrize('parallel', [True, False])
def test_not_enough_cols(parallel, read_csv):
 text = '\nA,B,C\n1,2,3\n4,5\n6,7,8\n'
 table = read_csv(text, parallel=parallel)
 assert (table['B'][1] is not ma.masked)
 assert (table['C'][1] is ma.masked)
 with pytest.raises(CParserError) as e:
  table = FastBasic(delimiter=',').read(text)

@ pytest . mark . parametrize ( 'parallel' , [ True , False ] ) def test_not_enough_cols ( parallel , read_csv ) : text = '\nA,B,C\n1,2,3\n4,5\n6,7,8\n' table = read_csv ( text , parallel = parallel ) assert ( table [ 'B' ] [ 1 ] is not ma . masked ) assert ( table [ 'C' ] [ 1 ] is ma . masked ) with pytest . raises ( CParserError ) as e : table = FastBasic ( delimiter = ',' ) . read ( text )
if a row does not have enough columns .