@pytest.mark.parametrize('parallel', [True, False])
def test_whitespace_before_comment(parallel, read_tab):
 text = 'a DCTB b DCTB c\n # comment line\n1 DCTB 2 DCTB 3'
 table = read_tab(text, parallel=parallel)
 expected = Table([[1], [2], [3]], names=('a', 'b', 'c'))
 assert_table_equal(table, expected)

@ pytest . mark . parametrize ( 'parallel' , [ True , False ] ) def test_whitespace_before_comment ( parallel , read_tab ) : text = 'a DCTB b DCTB c\n # comment line\n1 DCTB 2 DCTB 3' table = read_tab ( text , parallel = parallel ) expected = Table ( [ [ 1 ] , [ 2 ] , [ 3 ] ] , names = ( 'a' , 'b' , 'c' ) ) assert_table_equal ( table , expected )
readers that dont strip whitespace from data should still treat lines with leading whitespace and then the comment char as comment lines .