Index: build/android/devil/android/battery_utils_test.py |
diff --git a/build/android/devil/android/battery_utils_test.py b/build/android/devil/android/battery_utils_test.py |
index af18e89e598dc2636aa2c2aad46a86952c6046e2..cf0a15fdb0466a0de33173093e97e4acb92ac009 100755 |
--- a/build/android/devil/android/battery_utils_test.py |
+++ b/build/android/devil/android/battery_utils_test.py |
@@ -10,20 +10,18 @@ Unit tests for the contents of battery_utils.py |
# pylint: disable=protected-access,unused-argument |
import logging |
-import os |
import sys |
import unittest |
+from devil import devil_env |
from devil.android import battery_utils |
from devil.android import device_errors |
from devil.android import device_utils |
from devil.android import device_utils_test |
from devil.utils import mock_calls |
-from pylib import constants |
-sys.path.append(os.path.join( |
- constants.DIR_SOURCE_ROOT, 'third_party', 'pymock')) |
-import mock # pylint: disable=F0401 |
+sys.path.append(devil_env.config.LocalPath('pymock')) |
+import mock # pylint: disable=import-error |
_DUMPSYS_OUTPUT = [ |
'9,0,i,uid,1000,test_package1', |