OLD | NEW |
(Empty) | |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 """An intermediary used to import the third-party mock module.""" |
| 6 |
| 7 import os |
| 8 import sys |
| 9 |
| 10 sys.path.append(os.path.join( |
| 11 os.path.dirname(__file__), os.path.pardir, os.path.pardir, |
| 12 'third_party', 'pymock')) |
| 13 |
| 14 # Pylint is unable to import (F0401) because pylint doesn't modify sys.path. |
| 15 # A wildcard import is used below (W0401) to get everything from the module. |
| 16 # pylint: disable=F0401,W0401 |
| 17 from mock import * |
| 18 |
OLD | NEW |