From 32a94fc21248543522b33886fb79652877d4c224 Mon Sep 17 00:00:00 2001 From: Ang Li Date: Tue, 5 Mar 2019 14:25:00 -0800 Subject: Remove unused code path. (#568) --- mobly/base_test.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'mobly/base_test.py') 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: -- cgit v1.2.3