aboutsummaryrefslogtreecommitdiff
path: root/tests/mobly/controllers
diff options
context:
space:
mode:
authorEric Lin (Tzu Hsiang Lin) <ericth@google.com>2021-02-15 19:02:42 +0800
committerGitHub <noreply@github.com>2021-02-15 19:02:42 +0800
commit4e093ad01cfa503b7d797d086d2521ca9e5b3b9e (patch)
tree2b8a06779752428ed8d656bdc3f51493d020ce5b /tests/mobly/controllers
parenta05df92027c4905c48f4acdeadc94985fe0c8bb3 (diff)
downloadmobly-4e093ad01cfa503b7d797d086d2521ca9e5b3b9e.tar.gz
Drop the py2 compatibility in class declaration statements. (#724)
In Python 3, only new-style classes exist. No need to inherit from class object. Reference: https://stackoverflow.com/questions/4015417/python-class-inherits-object
Diffstat (limited to 'tests/mobly/controllers')
-rwxr-xr-xtests/mobly/controllers/android_device_lib/service_manager_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mobly/controllers/android_device_lib/service_manager_test.py b/tests/mobly/controllers/android_device_lib/service_manager_test.py
index 6ceec70..86af720 100755
--- a/tests/mobly/controllers/android_device_lib/service_manager_test.py
+++ b/tests/mobly/controllers/android_device_lib/service_manager_test.py
@@ -103,7 +103,7 @@ class ServiceManagerTest(unittest.TestCase):
def test_register_wrong_subclass_type(self):
- class MyClass(object):
+ class MyClass:
pass
manager = service_manager.ServiceManager(mock.MagicMock())