OLD | NEW |
---|---|
(Empty) | |
1 # 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
| |
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 |