diff options
author | Ang Li <angli@google.com> | 2019-03-05 14:25:00 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-05 14:25:00 -0800 |
commit | 32a94fc21248543522b33886fb79652877d4c224 (patch) | |
tree | 4534afe022b0ce4fbe5a168464d5a4c9c86d8e3d /mobly/base_test.py | |
parent | 75f17aa4a31975d0a488123a216d7381e698a20d (diff) | |
download | mobly-32a94fc21248543522b33886fb79652877d4c224.tar.gz |
Remove unused code path. (#568)
Diffstat (limited to 'mobly/base_test.py')
-rw-r--r-- | mobly/base_test.py | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/mobly/base_test.py b/mobly/base_test.py index 2add2f2..88e227b 100644 --- a/mobly/base_test.py +++ b/mobly/base_test.py @@ -563,7 +563,7 @@ class BaseTestClass(object): self.summary_writer.dump(content, records.TestSummaryEntryType.USER_DATA) - def exec_one_test(self, test_name, test_method, args=(), **kwargs): + def exec_one_test(self, test_name, test_method): """Executes one test and update test results. Executes setup_test, the test method, and teardown_test; then creates a @@ -571,10 +571,8 @@ class BaseTestClass(object): the record to the test class's test results. Args: - test_name: Name of the test. - test_method: The test method. - args: A tuple of params. - kwargs: Extra kwargs. + test_name: string, Name of the test. + test_method: function, The test method to execute. """ tr_record = records.TestResultRecord(test_name, self.TAG) tr_record.test_begin() @@ -591,10 +589,7 @@ class BaseTestClass(object): except signals.TestFailure as e: raise_with_traceback( signals.TestError(e.details, e.extras)) - if args or kwargs: - test_method(*args, **kwargs) - else: - test_method() + test_method() except signals.TestPass: raise except Exception: |