Commit 137d4c66 authored by Alexei Svitkine's avatar Alexei Svitkine Committed by Commit Bot

Fix PRESUMBIT_tests.py on Windows.

MockInputApi was returning MockFile objects instead of strings
from LocalPaths() API, which apparently trips up Windows Python
APIs, but not Unix ones.

Bug: 984360
Change-Id: I0a14cc07a9406d84d6b20d104d002fe67cc4ae86
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1706577Reviewed-by: default avatarDirk Pranke <dpranke@chromium.org>
Reviewed-by: default avatarGabriel Charette <gab@chromium.org>
Commit-Queue: Alexei Svitkine <asvitkine@chromium.org>
Cr-Commit-Position: refs/heads/master@{#678454}
parent c422eb15
...@@ -111,7 +111,7 @@ class MockInputApi(object): ...@@ -111,7 +111,7 @@ class MockInputApi(object):
return found_in_white_list return found_in_white_list
def LocalPaths(self): def LocalPaths(self):
return self.files return [file.LocalPath() for file in self.files]
def PresubmitLocalPath(self): def PresubmitLocalPath(self):
return self.presubmit_local_path return self.presubmit_local_path
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment