This method should NOT be called directly from tests.
(self, result, test_case, reason)
| 17177 | ) |
| 17178 | |
| 17179 | def _addSkip(self, result, test_case, reason): |
| 17180 | """This method should NOT be called directly from tests.""" |
| 17181 | addSkip = getattr(result, 'addSkip', None) |
| 17182 | if addSkip is not None: |
| 17183 | addSkip(test_case, reason) |
| 17184 | else: |
| 17185 | import warnings |
| 17186 | warnings.warn( |
| 17187 | "TestResult has no addSkip method! Skips not reported!", |
| 17188 | RuntimeWarning, 2 |
| 17189 | ) |
| 17190 | result.addSuccess(test_case) |
| 17191 | |
| 17192 | def _callTestMethod(self, method): |
| 17193 | """This method should NOT be called directly from tests.""" |