Index: PRESUBMIT.py |
diff --git a/PRESUBMIT.py b/PRESUBMIT.py |
index 2836a98e46eb79826de5090fa336beb0072320eb..33e13a580c8f9470c40c574e709d044cd6d0a72d 100644 |
--- a/PRESUBMIT.py |
+++ b/PRESUBMIT.py |
@@ -296,7 +296,7 @@ def _CheckNoUNIT_TESTInSourceFiles(input_api, output_api): |
continue |
for line_num, line in f.ChangedContents(): |
- if 'UNIT_TEST' in line: |
+ if 'UNIT_TEST ' in line or line.endswith('UNIT_TEST'): |
problems.append(' %s:%d' % (f.LocalPath(), line_num)) |
if not problems: |