Skip to content

Commit 03553b6

Browse files
committed
Ignore comments
1 parent fde3d12 commit 03553b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

atest/genrunner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def __init__(self, name, tags=None):
4646
name = SEPARATOR.split(line)[0].replace('*', '').replace(' ', '').upper()
4747
parsing_tests = name in ('TESTCASE', 'TESTCASES', 'TASK', 'TASKS')
4848
parsing_settings = name in ('SETTING', 'SETTINGS')
49-
elif parsing_tests and not SEPARATOR.match(line):
49+
elif parsing_tests and not SEPARATOR.match(line) and line[0] != '#':
5050
TESTS.append(TestCase(line.split(' ')[0]))
5151
elif parsing_tests and line.strip().startswith('[Tags]'):
5252
TESTS[-1].tags = line.split('[Tags]', 1)[1].split()

0 commit comments

Comments
 (0)