Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit 14e8140

Browse files
committed
Use match instead of search
1 parent fb333d9 commit 14e8140

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/validators/source_validator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def check_tests(file_path):
223223

224224
else:
225225
# Check test case names.
226-
case_found = TEST_CASE_PATT.search(line)
226+
case_found = TEST_CASE_PATT.match(line)
227227
if case_found and not case_found.groups()[1].endswith('Test'):
228228
if test_status:
229229
LOG.info("Invalid test name in %s", file_path)

0 commit comments

Comments
 (0)