Index: build/android/emma_coverage_stats_test.py |
diff --git a/build/android/emma_coverage_stats_test.py b/build/android/emma_coverage_stats_test.py |
index c39dd4718fa633fc5d74c50bbcfe2ef2bf0ec1a0..30b409e25678e211cd52ae7b6849700ab9699db9 100755 |
--- a/build/android/emma_coverage_stats_test.py |
+++ b/build/android/emma_coverage_stats_test.py |
@@ -5,17 +5,14 @@ |
# pylint: disable=protected-access |
-import os |
-import sys |
import unittest |
from xml.etree import ElementTree |
import emma_coverage_stats |
-from pylib import constants |
+from pylib.constants import host_paths |
-sys.path.append(os.path.join( |
- constants.DIR_SOURCE_ROOT, 'third_party', 'pymock')) |
-import mock # pylint: disable=import-error |
+with host_paths.SysPath(host_paths.PYMOCK_PATH): |
+ import mock # pylint: disable=import-error |
EMPTY_COVERAGE_STATS_DICT = { |
'files': {}, |