google / mobly

E2E test framework for tests with complex environment requirements.
https://github.com/google/mobly
Apache License 2.0
646 stars 179 forks source link

Change test case filter to use callable() instead of inspect.ismethod() #648

Closed xianyuanjia closed 5 years ago

xianyuanjia commented 5 years ago

There are several test decorators in ACTS that generate functions from bound methods. Calling inspect.ismethod() on these decorated tests would return False, even though they are valid test cases. Using callable() instead would allow these tests to be included.

This change is Reviewable