diff options
author | Maciej Żenczykowski <maze@google.com> | 2020-05-11 10:47:06 -0700 |
---|---|---|
committer | Maciej Żenczykowski <maze@google.com> | 2020-05-11 15:51:49 -0700 |
commit | 461542279e45c4caec692c25974c92c92c54f5e3 (patch) | |
tree | fa9e672ed3d2b8cc6557c9fa5643ad47cb7efc4c | |
parent | 732cf15b21d67ca603ac229a2a87f11db220e680 (diff) | |
download | tests-461542279e45c4caec692c25974c92c92c54f5e3.tar.gz |
net-test: all_tests.py - fix a lint warning
Fixes:
Forcing safe mode "style".
************* File all_tests.py
C6202: 17: Importing a member of a module [g-importing-member]
http://go/gpylint-faq#g-importing-member
Bug: 153035880
Test: ran uml net_tests against Android Kernel Common 4.19
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I924e58fd5c5c4ce380c9d40d6cabe8766491313e
Merged-In: I924e58fd5c5c4ce380c9d40d6cabe8766491313e
-rwxr-xr-x | net/test/all_tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/test/all_tests.py b/net/test/all_tests.py index 83c2770..5f6c583 100755 --- a/net/test/all_tests.py +++ b/net/test/all_tests.py @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from importlib import import_module +import importlib import sys import unittest @@ -49,7 +49,7 @@ if __name__ == '__main__': # First, run InjectTests on all modules, to ensure that any parameterized # tests in those modules are injected. for name in test_modules: - import_module(name) + importlib.import_module(name) if hasattr(sys.modules[name], 'InjectTests'): sys.modules[name].InjectTests() |