(self)
| 117 | return results |
| 118 | |
| 119 | def __repr__(self): |
| 120 | if self.skipped: |
| 121 | return (f'TestResults(failed={self.failed}, ' |
| 122 | f'attempted={self.attempted}, ' |
| 123 | f'skipped={self.skipped})') |
| 124 | else: |
| 125 | # Leave the repr() unchanged for backward compatibility |
| 126 | # if skipped is zero |
| 127 | return super().__repr__() |
| 128 | |
| 129 | |
| 130 | # There are 4 basic classes: |