aboutsummaryrefslogtreecommitdiff
path: root/mobly/base_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'mobly/base_test.py')
-rw-r--r--mobly/base_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mobly/base_test.py b/mobly/base_test.py
index d6e9faa..97caece 100644
--- a/mobly/base_test.py
+++ b/mobly/base_test.py
@@ -905,7 +905,7 @@ class BaseTestClass:
A list of strings, each is a test method name.
"""
test_names = []
- for name, _ in inspect.getmembers(self, callable):
+ for name, _ in inspect.getmembers(type(self), callable):
if name.startswith('test_'):
test_names.append(name)
return test_names + list(self._generated_test_table.keys())