@pytest.mark.parametrize('parallel', [True, False])
def test_many_columns(parallel, read_basic):
 text = ' '.join([str(i) for i in range(500)])
 text += ((('\n' + text) + '\n') + text)
 table = read_basic(text, parallel=parallel)
 expected = Table([[i, i] for i in range(500)], names=[str(i) for i in range(500)])
 assert_table_equal(table, expected)

@ pytest . mark . parametrize ( 'parallel' , [ True , False ] ) def test_many_columns ( parallel , read_basic ) : text = ' ' . join ( [ str ( i ) for i in range ( 500 ) ] ) text += ( ( ( '\n' + text ) + '\n' ) + text ) table = read_basic ( text , parallel = parallel ) expected = Table ( [ [ i , i ] for i in range ( 500 ) ] , names = [ str ( i ) for i in range ( 500 ) ] ) assert_table_equal ( table , expected )
make sure memory reallocation works okay when the number of columns is large .