summaryrefslogtreecommitdiffstats
path: root/PRESUBMIT.py
diff options
context:
space:
mode:
Diffstat (limited to 'PRESUBMIT.py')
-rw-r--r--PRESUBMIT.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 1fbdf23..9b86bad 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -115,7 +115,8 @@ def _CheckNoNewWStrings(input_api, output_api):
errors = []
for f in input_api.AffectedFiles():
for line_num, line in f.ChangedContents():
- if not f.LocalPath().endswith(('.cc', '.h')):
+ if (not f.LocalPath().endswith(('.cc', '.h')) or
+ f.LocalPath().endswith('test.cc')):
continue
if 'wstring' in line: