Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Unified Diff: tools/auto_bisect/mock_wrapper.py

Issue 548233002: Add a module to fetch builds from different types of builders. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated comments Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/auto_bisect/mock_wrapper.py
diff --git a/tools/auto_bisect/mock_wrapper.py b/tools/auto_bisect/mock_wrapper.py
new file mode 100644
index 0000000000000000000000000000000000000000..1185010d53f912e16728687bd64038dc0b2eaacc
--- /dev/null
+++ b/tools/auto_bisect/mock_wrapper.py
@@ -0,0 +1,18 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
ghost stip (do not use) 2014/09/17 00:12:08 this is just a workaround to get pylint to stop co
qyearsley 2014/09/18 22:58:59 This was intended as a way to make the import sect
ghost stip (do not use) 2014/09/18 23:05:52 Stuff will either be run with a proper PYTHONPATH,
qyearsley 2014/09/24 03:34:31 Hey, I didn't really understand what you're sugges
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""An intermediary used to import the third-party mock module."""
+
+import os
+import sys
+
+sys.path.append(os.path.join(
+ os.path.dirname(__file__), os.path.pardir, os.path.pardir,
+ 'third_party', 'pymock'))
+
+# Pylint is unable to import (F0401) because pylint doesn't modify sys.path.
+# A wildcard import is used below (W0401) to get everything from the module.
+# pylint: disable=F0401,W0401
+from mock import *
+
« tools/auto_bisect/fetch_build_test.py ('K') | « tools/auto_bisect/fetch_build_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698