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
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 @@
# 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()