From bd0cace8c1ade29a88106f75452cd9af2868f33f Mon Sep 17 00:00:00 2001 From: "pgervais@chromium.org" Date: Thu, 2 Oct 2014 23:23:46 +0000 Subject: [PATCH] Added os to input_api BUG= R=maruel@chromium.org Review URL: https://codereview.chromium.org/614413003 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@292291 0039d316-1c4b-4281-b951-d872f2087c98 --- presubmit_support.py | 1 + tests/presubmit_unittest.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/presubmit_support.py b/presubmit_support.py index e929e314d..b38652406 100755 --- a/presubmit_support.py +++ b/presubmit_support.py @@ -292,6 +292,7 @@ class InputApi(object): self.os_listdir = os.listdir self.os_walk = os.walk self.os_path = os.path + self.os_stat = os.stat self.pickle = pickle self.marshal = marshal self.re = re diff --git a/tests/presubmit_unittest.py b/tests/presubmit_unittest.py index 65c521c39..9df0b830e 100755 --- a/tests/presubmit_unittest.py +++ b/tests/presubmit_unittest.py @@ -1189,9 +1189,9 @@ class InputApiUnittest(PresubmitTestsBase): 'PresubmitLocalPath', 'ReadFile', 'RightHandSideLines', 'ServerPaths', 'basename', 'cPickle', 'cpplint', 'cStringIO', 'canned_checks', 'change', 'environ', 'glob', 'host_url', 'is_committing', 'json', 'logging', - 'marshal', 'os_listdir', 'os_walk', 'os_path', 'owners_db', 'pickle', - 'platform', 'python_executable', 're', 'rietveld', 'subprocess', 'tbr', - 'tempfile', 'time', 'traceback', 'unittest', 'urllib2', 'version', + 'marshal', 'os_listdir', 'os_walk', 'os_path', 'os_stat', 'owners_db', + 'pickle', 'platform', 'python_executable', 're', 'rietveld', 'subprocess', + 'tbr', 'tempfile', 'time', 'traceback', 'unittest', 'urllib2', 'version', 'verbose', ] # If this test fails, you should add the relevant test.