aboutsummaryrefslogtreecommitdiff
path: root/tests/mobly/controllers/android_device_lib/errors_test.py
diff options
context:
space:
mode:
authorEric Lin (Tzu Hsiang Lin) <ericth@google.com>2021-12-23 13:55:12 +0800
committerGitHub <noreply@github.com>2021-12-23 13:55:12 +0800
commit82c5e958fb1f8ce45e090369a4b0c7d82f07e4e9 (patch)
tree66d9ae73370fd43a7b4ba6808c1d60a8403766d8 /tests/mobly/controllers/android_device_lib/errors_test.py
parent797ac3a6bdefd98daf0df0fde1ca1fdf89013600 (diff)
downloadmobly-82c5e958fb1f8ce45e090369a4b0c7d82f07e4e9.tar.gz
Replace mock with unittest.mock and cleanup import section. (#785)
1. unittest.mock is added in Python 3.3, Mobly works on 3.6+ so we can replace mock with unittest.mock 2. Fix bad import order according to Google Python style guide: https://google.github.io/styleguide/pyguide.html#313-imports-formatting 3. Cleanup unused import 4. Remove `from builtins import str`
Diffstat (limited to 'tests/mobly/controllers/android_device_lib/errors_test.py')
-rwxr-xr-xtests/mobly/controllers/android_device_lib/errors_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mobly/controllers/android_device_lib/errors_test.py b/tests/mobly/controllers/android_device_lib/errors_test.py
index f6cfa50..196aa03 100755
--- a/tests/mobly/controllers/android_device_lib/errors_test.py
+++ b/tests/mobly/controllers/android_device_lib/errors_test.py
@@ -13,8 +13,8 @@
# limitations under the License.
"""Unit tests for Mobly android_device_lib.errors."""
-import mock
import unittest
+from unittest import mock
from mobly.controllers.android_device_lib import errors