@pytest.mark.parametrize('parallel', [True, False])
def test_include_exclude_names(parallel, read_basic):
 text = '\nA B C D E F G H\n1 2 3 4 5 6 7 8\n9 10 11 12 13 14 15 16\n'
 table = read_basic(text, include_names=['A', 'B', 'D', 'F', 'H'], exclude_names=['B', 'F'], parallel=parallel)
 expected = Table([[1, 9], [4, 12], [8, 16]], names=('A', 'D', 'H'))
 assert_table_equal(table, expected)

@ pytest . mark . parametrize ( 'parallel' , [ True , False ] ) def test_include_exclude_names ( parallel , read_basic ) : text = '\nA B C D E F G H\n1 2 3 4 5 6 7 8\n9 10 11 12 13 14 15 16\n' table = read_basic ( text , include_names = [ 'A' , 'B' , 'D' , 'F' , 'H' ] , exclude_names = [ 'B' , 'F' ] , parallel = parallel ) expected = Table ( [ [ 1 , 9 ] , [ 4 , 12 ] , [ 8 , 16 ] ] , names = ( 'A' , 'D' , 'H' ) ) assert_table_equal ( table , expected )
make sure that include_names is applied before exclude_names if both are specified .