diff options
author | Eric Lin (Tzu Hsiang Lin) <ericth@google.com> | 2021-12-23 13:55:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-23 13:55:12 +0800 |
commit | 82c5e958fb1f8ce45e090369a4b0c7d82f07e4e9 (patch) | |
tree | 66d9ae73370fd43a7b4ba6808c1d60a8403766d8 /tests/mobly/controllers/android_device_lib/errors_test.py | |
parent | 797ac3a6bdefd98daf0df0fde1ca1fdf89013600 (diff) | |
download | mobly-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-x | tests/mobly/controllers/android_device_lib/errors_test.py | 2 |
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 |