(self, fn)
| 300 | return result |
| 301 | |
| 302 | def _run_with_time(self, fn): |
| 303 | now = time.time() |
| 304 | try: |
| 305 | return fn(self.num) |
| 306 | finally: |
| 307 | total = time.time() - now |
| 308 | self.stats.append(TestResult(self, fn, total_time=total)) |
| 309 | |
| 310 | def _run_test(self, fn): |
| 311 | if self._setup: |
no test coverage detected