Chromium Code Reviews| 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 * |
| + |